Show exception

main
Bob Mottram 2023-04-29 20:23:56 +01:00
parent c88c73265e
commit 2ff4cc3f23
1 changed files with 6 additions and 6 deletions

View File

@ -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