Don't fail on the Pushbullet close handler

This commit is contained in:
Fabio Manganiello 2021-07-25 01:17:25 +02:00
parent 2fc7327788
commit 550fd3abe9
1 changed files with 5 additions and 1 deletions

View File

@ -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