|
|
|
@ -80,7 +80,7 @@ def client_signal(client):
|
|
|
|
|
|
|
|
|
|
class StoppableThread(threading.Thread):
|
|
|
|
|
def __init__(self):
|
|
|
|
|
super(StoppableThread, self).__init__()
|
|
|
|
|
super().__init__()
|
|
|
|
|
self._thread_stopped = threading.Event()
|
|
|
|
|
self._pause = threading.Event()
|
|
|
|
|
self._paused = threading.Event()
|
|
|
|
@ -165,7 +165,7 @@ def connect_with_cert(cert, path_to_cert, url, args, wait_thread, clVarsCore,
|
|
|
|
|
er = e
|
|
|
|
|
except Exception as e:
|
|
|
|
|
er = e
|
|
|
|
|
if e.message == 3:
|
|
|
|
|
if e == 3:
|
|
|
|
|
wait_thread.stop()
|
|
|
|
|
sys.exit(1)
|
|
|
|
|
Connect_Error = 1
|
|
|
|
@ -327,7 +327,7 @@ def https_server(client, args, unknown_args, url, clVarsCore, wait_thread):
|
|
|
|
|
print(_("Failed to terminate the process"))
|
|
|
|
|
mr.analysis(method_result)
|
|
|
|
|
except Exception as e:
|
|
|
|
|
_print(e.message)
|
|
|
|
|
_print(e)
|
|
|
|
|
|
|
|
|
|
try:
|
|
|
|
|
mess = method_result[0][0]
|
|
|
|
@ -466,7 +466,7 @@ def main(wait_thread):
|
|
|
|
|
clear_password(host, port)
|
|
|
|
|
elif e:
|
|
|
|
|
wait_thread.stop()
|
|
|
|
|
if type(e.message) != int:
|
|
|
|
|
if type(e) != int:
|
|
|
|
|
print(_('Error: '), e)
|
|
|
|
|
get_name_flag = False
|
|
|
|
|
|
|
|
|
@ -486,9 +486,9 @@ def main(wait_thread):
|
|
|
|
|
print(red + _("Manually interrupted"))
|
|
|
|
|
except Exception as e:
|
|
|
|
|
wait_thread.stop()
|
|
|
|
|
if type(e.message) != int:
|
|
|
|
|
if e.message:
|
|
|
|
|
print(e.message)
|
|
|
|
|
if type(e) != int:
|
|
|
|
|
if e:
|
|
|
|
|
print(e)
|
|
|
|
|
elif e.args:
|
|
|
|
|
print(e)
|
|
|
|
|
return 1
|
|
|
|
@ -567,7 +567,7 @@ def main(wait_thread):
|
|
|
|
|
return 1
|
|
|
|
|
elif e:
|
|
|
|
|
wait_thread.stop()
|
|
|
|
|
if type(e.message) != int:
|
|
|
|
|
if type(e) != int:
|
|
|
|
|
print(_('Error: '), e)
|
|
|
|
|
return 1
|
|
|
|
|
|
|
|
|
@ -592,9 +592,9 @@ def main(wait_thread):
|
|
|
|
|
print(red + _("Manually interrupted"))
|
|
|
|
|
except Exception as e:
|
|
|
|
|
wait_thread.stop()
|
|
|
|
|
if type(e.message) != int:
|
|
|
|
|
if e.message:
|
|
|
|
|
print(e.message)
|
|
|
|
|
if type(e) != int:
|
|
|
|
|
if e:
|
|
|
|
|
print(e)
|
|
|
|
|
elif e.args:
|
|
|
|
|
print(e)
|
|
|
|
|
# tb.print_exc()
|
|
|
|
|