mirror of https://gitlab.com/bashrc2/epicyon
Thread exception handling
parent
bb59ef07de
commit
5ab2e97605
|
@ -46,8 +46,12 @@ class threadWithTrace(threading.Thread):
|
||||||
|
|
||||||
def __run(self):
|
def __run(self):
|
||||||
sys.settrace(self.globaltrace)
|
sys.settrace(self.globaltrace)
|
||||||
self.__run_backup()
|
try:
|
||||||
self.run = self.__run_backup
|
self.__run_backup()
|
||||||
|
self.run = self.__run_backup
|
||||||
|
except Exception as e:
|
||||||
|
print('ERROR: threads.py/__run failed - ' + str(e))
|
||||||
|
pass
|
||||||
|
|
||||||
def globaltrace(self, frame, event, arg):
|
def globaltrace(self, frame, event, arg):
|
||||||
if event == 'call':
|
if event == 'call':
|
||||||
|
|
Loading…
Reference in New Issue