From b880a02ef6ab76b9abfcc5a1a3da8fd0f96d1f58 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Wed, 25 Dec 2019 20:43:20 +0100 Subject: [PATCH] Fixed websocket on_error handler signature --- platypush/backend/music/mopidy.py | 2 +- platypush/backend/todoist.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/platypush/backend/music/mopidy.py b/platypush/backend/music/mopidy.py index c41b2da960..66bf5ad54c 100644 --- a/platypush/backend/music/mopidy.py +++ b/platypush/backend/music/mopidy.py @@ -196,7 +196,7 @@ class MusicMopidyBackend(Backend): return hndl def _on_error(self): - def hndl(error): + def hndl(ws, error): self.logger.warning('Mopidy websocket error: {}'.format(error)) return hndl diff --git a/platypush/backend/todoist.py b/platypush/backend/todoist.py index 15797345f0..aca190208f 100644 --- a/platypush/backend/todoist.py +++ b/platypush/backend/todoist.py @@ -59,7 +59,8 @@ class TodoistBackend(Backend): return hndl def _on_error(self): - def hndl(error): + # noinspection PyUnusedLocal + def hndl(ws, error): self.logger.warning('Todoist websocket error: {}'.format(error)) return hndl