Catch notification thread exception

This commit is contained in:
JonnyWong16 2017-04-22 11:14:53 -07:00
parent e71e588a91
commit 77b0f69b0c

View file

@ -46,10 +46,14 @@ def process_queue():
if params is None:
break
elif params:
if 'notifier_id' in params:
notify(**params)
else:
add_notifier_each(**params)
try:
if 'notifier_id' in params:
notify(**params)
else:
add_notifier_each(**params)
except Exception as e:
logger.exception(u"PlexPy NotificationHandler :: Notification thread exception: %s" % e)
queue.task_done()
logger.info(u"PlexPy NotificationHandler :: Notification thread exiting...")