Fixed websocket on_error handler signature
This commit is contained in:
parent
29789461d7
commit
b880a02ef6
2 changed files with 3 additions and 2 deletions
|
@ -196,7 +196,7 @@ class MusicMopidyBackend(Backend):
|
||||||
return hndl
|
return hndl
|
||||||
|
|
||||||
def _on_error(self):
|
def _on_error(self):
|
||||||
def hndl(error):
|
def hndl(ws, error):
|
||||||
self.logger.warning('Mopidy websocket error: {}'.format(error))
|
self.logger.warning('Mopidy websocket error: {}'.format(error))
|
||||||
return hndl
|
return hndl
|
||||||
|
|
||||||
|
|
|
@ -59,7 +59,8 @@ class TodoistBackend(Backend):
|
||||||
return hndl
|
return hndl
|
||||||
|
|
||||||
def _on_error(self):
|
def _on_error(self):
|
||||||
def hndl(error):
|
# noinspection PyUnusedLocal
|
||||||
|
def hndl(ws, error):
|
||||||
self.logger.warning('Todoist websocket error: {}'.format(error))
|
self.logger.warning('Todoist websocket error: {}'.format(error))
|
||||||
return hndl
|
return hndl
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue