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
|
return True
|
||||||
|
|
||||||
except BaseException:
|
except BaseException as ex:
|
||||||
print('EX: site_is_active ' + str(loc))
|
print('EX: site_is_active ' + url + ' ' + str(ex))
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -46,6 +46,10 @@ class thread_with_trace(threading.Thread):
|
||||||
|
|
||||||
def __run(self):
|
def __run(self):
|
||||||
sys.settrace(self.globaltrace)
|
sys.settrace(self.globaltrace)
|
||||||
|
if not callable(self.__run_backup):
|
||||||
|
print('ERROR: threads.py/__run ' +
|
||||||
|
str(self.__run_backup) + 'is not callable')
|
||||||
|
return
|
||||||
try:
|
try:
|
||||||
self.__run_backup()
|
self.__run_backup()
|
||||||
self.run = self.__run_backup
|
self.run = self.__run_backup
|
||||||
|
|
Loading…
Reference in New Issue