fstream/modules/exceptions.py

19 lines
319 B
Python
Raw Normal View History

2022-05-29 12:31:07 +00:00
global traceback
import traceback
global excConnectionClosed
class excConnectionClosed(Exception): pass
global handleException
def handleException(e):
try:
if printExceptions:
print(traceback.format_exc())
except:
try:
print(e)
except:
try:
print("Printing exception failed!")
except:
pass