on_message requires two arguments

This commit is contained in:
Fabio Manganiello 2019-02-12 23:00:16 +01:00
parent 6024eddd2d
commit e5c169a549
1 changed files with 1 additions and 1 deletions

View File

@ -105,7 +105,7 @@ class MusicMopidyBackend(Backend):
}
def _on_msg(self):
def hndl(msg):
def hndl(ws, msg):
msg = json.loads(msg)
event = msg.get('event')
if not event: