From e5c169a54922e2b5f3aa16b129fb5fc082c988b4 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Tue, 12 Feb 2019 23:00:16 +0100 Subject: [PATCH] on_message requires two arguments --- platypush/backend/music/mopidy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platypush/backend/music/mopidy.py b/platypush/backend/music/mopidy.py index ec5b503de..8d02f58f1 100644 --- a/platypush/backend/music/mopidy.py +++ b/platypush/backend/music/mopidy.py @@ -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: