Skip to content

Commit eaa28ac

Browse files
committed
Add fix for failing test
1 parent d36f901 commit eaa28ac

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/gotranx/codegen/base.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,10 @@ def print_cond(cond):
8787
else:
8888
return printer._print(cond)
8989

90-
expr = sympy.simplify(expr)
91-
90+
try:
91+
expr = sympy.simplify(expr)
92+
except TypeError:
93+
logger.debug(f"Could not simplify expression {expr}")
9294
exprs = [printer._print(arg.expr) for arg in expr.args]
9395
conds = [print_cond(arg.cond) for arg in expr.args]
9496

0 commit comments

Comments
 (0)