From 550fd3abe9265f174de47df74ca97c970f09ec02 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Sun, 25 Jul 2021 01:17:25 +0200 Subject: [PATCH] Don't fail on the Pushbullet close handler --- platypush/backend/pushbullet/listener.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/platypush/backend/pushbullet/listener.py b/platypush/backend/pushbullet/listener.py index e847d17e9..84b5a97f2 100644 --- a/platypush/backend/pushbullet/listener.py +++ b/platypush/backend/pushbullet/listener.py @@ -30,7 +30,11 @@ class Listener(_Listener): def callback(*_): self.connected = False if self._on_close_hndl: - self._on_close_hndl() + # noinspection PyBroadException + try: + self._on_close_hndl() + except: + pass return callback