From 0ff9facb54005b6777b5d3441c81df8ca036fe40 Mon Sep 17 00:00:00 2001 From: kirbylife Date: Thu, 17 Dec 2020 15:54:44 -0600 Subject: [PATCH] removed the trace messages --- client.py | 2 ++ config.py | 9 ++++++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/client.py b/client.py index d911618..5ac4e01 100755 --- a/client.py +++ b/client.py @@ -35,6 +35,7 @@ try: except ImportError: import _thread as thread + _online_icon = Image.open("img/icons/online.png") _offline_icon = Image.open("img/icons/offline.png") _standby_icon = Image.open("img/icons/standby.png") @@ -102,6 +103,7 @@ class MunyalClient(Icon): icon.visible = True while True: print("Conectando al websocket") + websocket.enableTrace(False) ws = websocket.WebSocketApp( f"ws://{self.config['login']['user']}.loca.lt", # "ws://127.0.0.1:12345", diff --git a/config.py b/config.py index d72d2d8..b4ce977 100644 --- a/config.py +++ b/config.py @@ -39,7 +39,10 @@ def set_last_history(last_history): def get_config(): for _ in range(3): - config = __get_config() + try: + config = __get_config() + except EOFError: + config = None if not config: try: gui_config() @@ -109,7 +112,7 @@ def __set_config(user, password, folder): pickle.dumps({ "login": { "user": user, - "password": passwd_hash + "password": password }, "folder": folder, "uuid": str(uuid4()) @@ -183,6 +186,6 @@ def search_folder(field): if __name__ == "__main__": if "--restart" in sys.argv: - if __get_config(): + if get_config(): shutil.rmtree(__get_config_folder()) print(get_config())