We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 440f129 + 3efa2fa commit d63494fCopy full SHA for d63494f
flask_monitoringdashboard/core/exceptions/exception_collector.py
@@ -62,7 +62,8 @@ def _get_copy_of_exception(e: BaseException):
62
try:
63
new_exc = copy.deepcopy(e)
64
except Exception:
65
- new_exc = e.__class__()
+ # For exceptions that can't be instantiated without args, just return the original
66
+ return e
67
68
if e.__traceback__:
69
return new_exc.with_traceback(e.__traceback__)
0 commit comments