removed the trace messages
parent
7afb2b07f8
commit
0ff9facb54
|
@ -35,6 +35,7 @@ try:
|
||||||
except ImportError:
|
except ImportError:
|
||||||
import _thread as thread
|
import _thread as thread
|
||||||
|
|
||||||
|
|
||||||
_online_icon = Image.open("img/icons/online.png")
|
_online_icon = Image.open("img/icons/online.png")
|
||||||
_offline_icon = Image.open("img/icons/offline.png")
|
_offline_icon = Image.open("img/icons/offline.png")
|
||||||
_standby_icon = Image.open("img/icons/standby.png")
|
_standby_icon = Image.open("img/icons/standby.png")
|
||||||
|
@ -102,6 +103,7 @@ class MunyalClient(Icon):
|
||||||
icon.visible = True
|
icon.visible = True
|
||||||
while True:
|
while True:
|
||||||
print("Conectando al websocket")
|
print("Conectando al websocket")
|
||||||
|
websocket.enableTrace(False)
|
||||||
ws = websocket.WebSocketApp(
|
ws = websocket.WebSocketApp(
|
||||||
f"ws://{self.config['login']['user']}.loca.lt",
|
f"ws://{self.config['login']['user']}.loca.lt",
|
||||||
# "ws://127.0.0.1:12345",
|
# "ws://127.0.0.1:12345",
|
||||||
|
|
|
@ -39,7 +39,10 @@ def set_last_history(last_history):
|
||||||
|
|
||||||
def get_config():
|
def get_config():
|
||||||
for _ in range(3):
|
for _ in range(3):
|
||||||
config = __get_config()
|
try:
|
||||||
|
config = __get_config()
|
||||||
|
except EOFError:
|
||||||
|
config = None
|
||||||
if not config:
|
if not config:
|
||||||
try:
|
try:
|
||||||
gui_config()
|
gui_config()
|
||||||
|
@ -109,7 +112,7 @@ def __set_config(user, password, folder):
|
||||||
pickle.dumps({
|
pickle.dumps({
|
||||||
"login": {
|
"login": {
|
||||||
"user": user,
|
"user": user,
|
||||||
"password": passwd_hash
|
"password": password
|
||||||
},
|
},
|
||||||
"folder": folder,
|
"folder": folder,
|
||||||
"uuid": str(uuid4())
|
"uuid": str(uuid4())
|
||||||
|
@ -183,6 +186,6 @@ def search_folder(field):
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
if "--restart" in sys.argv:
|
if "--restart" in sys.argv:
|
||||||
if __get_config():
|
if get_config():
|
||||||
shutil.rmtree(__get_config_folder())
|
shutil.rmtree(__get_config_folder())
|
||||||
print(get_config())
|
print(get_config())
|
||||||
|
|
Loading…
Reference in New Issue