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):
|
||||
sys.settrace(self.globaltrace)
|
||||
try:
|
||||
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):
|
||||
if event == 'call':
|
||||
|
|
Loading…
Reference in New Issue