- Added log when not able to connect to dicord client
This commit is contained in:
parent
81167e5db3
commit
e08e6bc62c
1 changed files with 5 additions and 1 deletions
|
|
@ -269,10 +269,13 @@ def sub_all_voice(ws):
|
|||
sub_all_voice_guild(ws, guild)
|
||||
|
||||
def do_read():
|
||||
global ws, win, userlist, list_altered
|
||||
global ws, win, userlist, list_altered, warn_connection
|
||||
if not ws:
|
||||
# Reconnect if needed
|
||||
connect()
|
||||
if warn_connection:
|
||||
print("Unable to connect to Discord client")
|
||||
warn_connection=False
|
||||
return True
|
||||
# Recreate a list of users in current room
|
||||
newlist = []
|
||||
|
|
@ -1055,4 +1058,5 @@ if __name__ == "__main__":
|
|||
settings=None
|
||||
ind=None
|
||||
menu=None
|
||||
warn_connection=True
|
||||
main()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue