forked from platypush/platypush
No reference to self in static method
This commit is contained in:
parent
ee5b8e21a0
commit
ea3eef379a
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue