fhttpy/modules/exceptions.py
2022-02-14 22:43:12 +01:00

19 lines
319 B
Python

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