Fixed websocket on_error handler signature

This commit is contained in:
Fabio Manganiello 2019-12-25 20:43:20 +01:00
parent 29789461d7
commit b880a02ef6
2 changed files with 3 additions and 2 deletions

View File

@ -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

View File

@ -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