From 9e41bf529d8a176edc88a5f0d15d394ea39fe811 Mon Sep 17 00:00:00 2001 From: JonnyWong16 Date: Mon, 16 May 2016 08:28:40 -0700 Subject: [PATCH] Don't return inside the loop after sending XBMC/Plex notifications --- plexpy/notifiers.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/plexpy/notifiers.py b/plexpy/notifiers.py index 1fb1ea96..85212e33 100644 --- a/plexpy/notifiers.py +++ b/plexpy/notifiers.py @@ -786,12 +786,13 @@ class XBMC(object): raise Exception else: logger.info(u"PlexPy Notifiers :: XBMC notification sent.") - return True except Exception: - logger.warn(u"PlexPy Notifiers :: XBMC notification filed.") + logger.warn(u"PlexPy Notifiers :: XBMC notification failed.") return False + return True + def return_config_options(self): config_option = [{'label': 'XBMC Host:Port', 'value': self.hosts, @@ -870,11 +871,12 @@ class Plex(object): raise Exception else: logger.info(u"PlexPy Notifiers :: Plex Home Theater notification sent.") - return True except Exception: - logger.warn(u"PlexPy Notifiers :: Plex Home Theater notification filed.") + logger.warn(u"PlexPy Notifiers :: Plex Home Theater notification failed.") return False + + return True def return_config_options(self): config_option = [{'label': 'Plex Home Theater Host:Port',