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 ' +
|
||||
str(self.__run_backup) + 'is not callable')
|
||||
return
|
||||
try:
|
||||
self.__run_backup()
|
||||
self.run = self.__run_backup
|
||||
except Exception as ex:
|
||||
print('ERROR: threads.py/__run failed - ' + str(ex) +
|
||||
', ' + str(self.__run_backup))
|
||||
# try:
|
||||
self.__run_backup()
|
||||
self.run = self.__run_backup
|
||||
# except Exception as ex:
|
||||
# print('ERROR: threads.py/__run failed - ' + str(ex) +
|
||||
# ', ' + str(self.__run_backup))
|
||||
|
||||
def globaltrace(self, frame, event, arg):
|
||||
"""Trace the thread
|
||||
|
|
Loading…
Reference in New Issue