removed the trace messages

master
kirbylife 2020-12-17 15:54:44 -06:00
parent 7afb2b07f8
commit 0ff9facb54
2 changed files with 8 additions and 3 deletions

View File

@ -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",

View File

@ -39,7 +39,10 @@ def set_last_history(last_history):
def get_config():
for _ in range(3):
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())