fix notification_sound not reconnecting on error
This commit is contained in:
parent
5e57ae9af2
commit
00f754aae9
|
@ -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()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue