fix notification_sound not reconnecting on error

This commit is contained in:
Wardyn 2023-01-29 16:09:37 -08:00
parent 5e57ae9af2
commit 00f754aae9
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ def on_message(ws, message):
playsound(sound) playsound(sound)
def on_open(ws): def on_open(ws):
print('Websocket opened') print('Websocket opened')
def on_close(ws): def on_close(ws, *error):
print('Websocket closed, attempting to reconnect') print('Websocket closed, attempting to reconnect')
connect_websocket() connect_websocket()