From ea3eef379a5c9cfe81db5bdaec1546a6155871ce Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Thu, 14 Dec 2017 01:58:42 +0100 Subject: [PATCH] No reference to self in static method --- platypush/backend/pushbullet/__init__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/platypush/backend/pushbullet/__init__.py b/platypush/backend/pushbullet/__init__.py index a9b87074..b15a9b63 100644 --- a/platypush/backend/pushbullet/__init__.py +++ b/platypush/backend/pushbullet/__init__.py @@ -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