Commit 50072746 authored by Michal 'vorner' Vaner's avatar Michal 'vorner' Vaner
Browse files

[3095] Docstring for the traceback_handler

parent 4b1b5fd9
......@@ -22,6 +22,13 @@ import traceback
logger = isc.log.Logger('util')
def traceback_handler(main):
Handle uncaught exception from the main callable.
The function runs the callable passed as main (it is called
without any provided parameters). If it raises any exception,
the exception is logged and the application terminated.
return main()
except Exception as e:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment