提交 d82e9fd4 authored 作者: Olivier Breuleux's avatar Olivier Breuleux

fixed trace bug

上级 d7d8792a
...@@ -105,11 +105,11 @@ class PerformLinker(Linker): ...@@ -105,11 +105,11 @@ class PerformLinker(Linker):
for thunk, op in zip(thunks, order): for thunk, op in zip(thunks, order):
thunk() thunk()
except: except:
exc_type, exc_value, exc_trace = sys.exc_info()
try: try:
trace = op.trace trace = op.trace
except AttributeError: except AttributeError:
trace = () trace = ()
exc_type, exc_value, exc_trace = sys.exc_info()
class X:pass class X:pass
__x = X() __x = X()
__x.__thunk_trace__ = trace __x.__thunk_trace__ = trace
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论