mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2025-03-03 09:29:14 +01:00
print handled exceptions.
This commit is contained in:
parent
b1b487bc48
commit
83137ba0a0
1 changed files with 1 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Reference in a new issue