Moved commonb functions to utils
This commit is contained in:
parent
14ca7f5a2b
commit
1e4fdfeace
1 changed files with 6 additions and 0 deletions
6
Shared/Utils.py
Normal file
6
Shared/Utils.py
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
from traceback import print_exception
|
||||||
|
from sys import exc_info
|
||||||
|
|
||||||
|
def capture_trace():
|
||||||
|
exc_type, exc_value, exc_traceback = exc_info()
|
||||||
|
print_exception(exc_type, exc_value, exc_traceback)
|
Reference in a new issue