No reference to self in static method

This commit is contained in:
Fabio Manganiello 2017-12-14 01:58:42 +01:00
parent ee5b8e21a0
commit ea3eef379a

View file

@ -27,8 +27,9 @@ class PushbulletBackend(Backend):
@staticmethod @staticmethod
def _on_error(ws, e): def _on_error(ws, e):
logging.exception(e) logging.exception(e)
self.ws.close() backend = ws.backend
self._init_socket() ws.close()
backend._init_socket()
def _get_latest_push(self): def _get_latest_push(self):
t = int(time.time()) - 2 t = int(time.time()) - 2