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
1 changed files with 3 additions and 2 deletions

View File

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