mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-25 09:37:37 +00:00
fix compatibility with Python 3.8
This commit is contained in:
parent
e22f8db526
commit
6ec97d0b8e
@ -70,7 +70,11 @@ class Master:
|
||||
if isinstance(exc, OSError) and exc.errno == 10038:
|
||||
return # suppress https://bugs.python.org/issue43253
|
||||
self.log.error(
|
||||
"\n".join(traceback.format_exception(exc)) +
|
||||
"\n".join(traceback.format_exception(
|
||||
type(exc),
|
||||
exc,
|
||||
exc.__traceback__
|
||||
)) +
|
||||
"\nPlease lodge a bug report at:" +
|
||||
"\n\thttps://github.com/mitmproxy/mitmproxy/issues"
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user