mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-11 15:56:07 -07:00
Catch notification thread exception
This commit is contained in:
parent
e71e588a91
commit
77b0f69b0c
1 changed files with 8 additions and 4 deletions
|
@ -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...")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue