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
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue