Fix(Core): add exceptions handling in render (not convinced...)
This commit is contained in:
parent
79aaa3c5d9
commit
24b421209f
@ -115,7 +115,10 @@ def mul2tex(left, right):
|
|||||||
if OPERATORS[right.node]["precedence"] < OPERATORS['*']["precedence"]:
|
if OPERATORS[right.node]["precedence"] < OPERATORS['*']["precedence"]:
|
||||||
right_need_parenthesis = True
|
right_need_parenthesis = True
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
right_ = right.__tex__
|
try:
|
||||||
|
right_ = right.__tex__
|
||||||
|
except AttributeError:
|
||||||
|
right_ = right
|
||||||
else:
|
else:
|
||||||
if right_need_parenthesis:
|
if right_need_parenthesis:
|
||||||
display_time = False
|
display_time = False
|
||||||
|
@ -115,7 +115,10 @@ def mul2txt(left, right):
|
|||||||
if OPERATORS[right.node]["precedence"] < OPERATORS['*']["precedence"]:
|
if OPERATORS[right.node]["precedence"] < OPERATORS['*']["precedence"]:
|
||||||
right_need_parenthesis = True
|
right_need_parenthesis = True
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
right_ = right.__txt__
|
try:
|
||||||
|
right_ = right.__txt__
|
||||||
|
except AttributeError:
|
||||||
|
right_ = right
|
||||||
else:
|
else:
|
||||||
if right_need_parenthesis:
|
if right_need_parenthesis:
|
||||||
display_time = False
|
display_time = False
|
||||||
|
Loading…
Reference in New Issue
Block a user