Skip to content

Commit 37c0e0a

Browse files
committed
A new error has arrived. Please use with caution!
1 parent eaa7757 commit 37c0e0a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

OWScript/Transpiler.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ def visitBinaryOp(self, node, scope):
356356
}.get(node.op)
357357
try:
358358
code += '(' + self.visit(node.left, scope) + ', ' + self.visit(node.right, scope) + ')'
359-
except RecursionError:
359+
except RecursionError as ex:
360360
pass
361361
return code
362362

@@ -378,8 +378,6 @@ def visitGlobalVar(self, node, scope):
378378
return self.visit(var, scope)
379379
elif type(var.value) == String:
380380
return var.value.value
381-
else:
382-
return self.visit(var.value, scope)
383381
code = 'Value In Array(Global Variable(A), {})'.format(var.index)
384382
return code
385383

0 commit comments

Comments
 (0)