From 75701a7b7a34ab5e5522c222b623ff4702f41eae Mon Sep 17 00:00:00 2001 From: blacktwin Date: Thu, 28 Sep 2017 14:59:31 -0400 Subject: [PATCH] Update ip_whitelist.py --- killstream/ip_whitelist.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/killstream/ip_whitelist.py b/killstream/ip_whitelist.py index 472ecc6..f8cc09f 100644 --- a/killstream/ip_whitelist.py +++ b/killstream/ip_whitelist.py @@ -42,11 +42,11 @@ ip_address = sys.argv[2] plex = PlexServer(PLEX_URL, PLEX_TOKEN) -def send_notification(SUBJECT_TEXT, BODY_TEXT): +def send_notification(subject_text, body_text): # Format notification text try: - subject = SUBJECT_TEXT.format() - body = BODY_TEXT.format() + subject = subject_text + body = body_text except LookupError as e: sys.stderr.write("Unable to substitute '{0}' in the notification subject or body".format(e))