mirror of https://gitlab.com/bashrc2/epicyon
Debug
parent
2537e9d435
commit
efc2a09cea
|
@ -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
|
||||
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue