This commit is contained in:
Tony Rewin 2023-10-05 00:01:25 +03:00
parent e1a8c7c986
commit 6cea5dd331

View File

@ -49,9 +49,7 @@ local_headers = [
]
def exception_handler(exception_type, exc, traceback, debug_hook=sys.excepthook):
print(traceback)
print("%s: %s" % (exc.__name__, exc))
def exception_handler(_et, exc, _tb):
logger.error(..., exc_info=(type(exc), exc, exc.__traceback__))