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"]:
|
||||
right_need_parenthesis = True
|
||||
except AttributeError:
|
||||
right_ = right.__tex__
|
||||
try:
|
||||
right_ = right.__tex__
|
||||
except AttributeError:
|
||||
right_ = right
|
||||
else:
|
||||
if right_need_parenthesis:
|
||||
display_time = False
|
||||
|
@ -115,7 +115,10 @@ def mul2txt(left, right):
|
||||
if OPERATORS[right.node]["precedence"] < OPERATORS['*']["precedence"]:
|
||||
right_need_parenthesis = True
|
||||
except AttributeError:
|
||||
right_ = right.__txt__
|
||||
try:
|
||||
right_ = right.__txt__
|
||||
except AttributeError:
|
||||
right_ = right
|
||||
else:
|
||||
if right_need_parenthesis:
|
||||
display_time = False
|
||||
|
Loading…
Reference in New Issue
Block a user