fix addon tracebacks

`.tb_next` discards the first interesting frame,
this shouldn't happen.
This commit is contained in:
Maximilian Hils 2017-07-21 11:24:42 +02:00
parent e1d0bc6de9
commit 3209704086

View File

@ -61,7 +61,7 @@ def safecall():
raise
except Exception as e:
etype, value, tb = sys.exc_info()
tb = cut_traceback(tb, "invoke_addon").tb_next
tb = cut_traceback(tb, "invoke_addon")
ctx.log.error(
"Addon error: %s" % "".join(
traceback.format_exception(etype, value, tb)