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 committed by Matt Weidner
parent a2da9b6c02
commit 5685a4850a
1 changed files with 1 additions and 1 deletions

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)