mirror of
https://github.com/lnbits/lnbits.git
synced 2025-09-22 07:06:08 +02:00
print handled exceptions.
This commit is contained in:
@@ -132,6 +132,7 @@ def register_async_tasks(app):
|
||||
def register_exception_handlers(app):
|
||||
@app.errorhandler(Exception)
|
||||
async def basic_error(err):
|
||||
print("handled error", traceback.format_exc())
|
||||
etype, value, tb = sys.exc_info()
|
||||
traceback.print_exception(etype, err, tb)
|
||||
exc = traceback.format_exc()
|
||||
|
Reference in New Issue
Block a user