diff --git a/plexpy/notification_handler.py b/plexpy/notification_handler.py index fc07da5a..8ba8e017 100644 --- a/plexpy/notification_handler.py +++ b/plexpy/notification_handler.py @@ -934,6 +934,7 @@ def build_server_notify_text(notify_action=None, agent_id=None): update_status = {} if notify_action == 'pmsupdate': + pms_connect = pmsconnect.PmsConnect() update_status = pms_connect.get_update_staus() if server_times: @@ -1108,4 +1109,4 @@ def strip_tag(data, agent_id=None): else: p = re.compile(r'<.*?>', re.IGNORECASE | re.DOTALL) - return p.sub('', data) \ No newline at end of file + return p.sub('', data)