merge-requests/25/head
Bob Mottram 2022-06-06 12:21:25 +01:00
parent 2537e9d435
commit efc2a09cea
2 changed files with 6 additions and 2 deletions

View File

@ -119,8 +119,8 @@ def site_is_active(url: str, timeout: int) -> bool:
return True
except BaseException:
print('EX: site_is_active ' + str(loc))
except BaseException as ex:
print('EX: site_is_active ' + url + ' ' + str(ex))
return False

View File

@ -46,6 +46,10 @@ class thread_with_trace(threading.Thread):
def __run(self):
sys.settrace(self.globaltrace)
if not callable(self.__run_backup):
print('ERROR: threads.py/__run ' +
str(self.__run_backup) + 'is not callable')
return
try:
self.__run_backup()
self.run = self.__run_backup