mirror of https://gitlab.com/bashrc2/epicyon
Show exception
parent
c88c73265e
commit
2ff4cc3f23
12
threads.py
12
threads.py
|
@ -51,12 +51,12 @@ class thread_with_trace(threading.Thread):
|
||||||
print('ERROR: threads.py/__run ' +
|
print('ERROR: threads.py/__run ' +
|
||||||
str(self.__run_backup) + 'is not callable')
|
str(self.__run_backup) + 'is not callable')
|
||||||
return
|
return
|
||||||
try:
|
# try:
|
||||||
self.__run_backup()
|
self.__run_backup()
|
||||||
self.run = self.__run_backup
|
self.run = self.__run_backup
|
||||||
except Exception as ex:
|
# except Exception as ex:
|
||||||
print('ERROR: threads.py/__run failed - ' + str(ex) +
|
# print('ERROR: threads.py/__run failed - ' + str(ex) +
|
||||||
', ' + str(self.__run_backup))
|
# ', ' + str(self.__run_backup))
|
||||||
|
|
||||||
def globaltrace(self, frame, event, arg):
|
def globaltrace(self, frame, event, arg):
|
||||||
"""Trace the thread
|
"""Trace the thread
|
||||||
|
|
Loading…
Reference in New Issue