mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-23 00:01:36 +00:00
fix addon tracebacks
`.tb_next` discards the first interesting frame, this shouldn't happen.
This commit is contained in:
parent
e1d0bc6de9
commit
3209704086
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user