提交 6922a69c authored 作者: Frederic Bastien's avatar Frederic Bastien

fix the display of error in some corner case in debug_mode

上级 33bd7278
......@@ -46,7 +46,9 @@ def raise_with_op(op, exc_info = None):
except AttributeError:
trace = ()
exc_value.__thunk_trace__ = trace
exc_value.args = exc_value.args + (op, ) + ('Sequence id of Apply node='+str(op.env.toposort().index(op)),)
exc_value.args += (op, )
if op in op.env.toposort():
exc_value.args += ('Sequence id of Apply node='+str(op.env.toposort().index(op)),)
raise exc_type, exc_value, exc_trace
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论