Update ip_whitelist.py
This commit is contained in:
parent
60f14e962b
commit
75701a7b7a
@ -42,11 +42,11 @@ ip_address = sys.argv[2]
|
|||||||
plex = PlexServer(PLEX_URL, PLEX_TOKEN)
|
plex = PlexServer(PLEX_URL, PLEX_TOKEN)
|
||||||
|
|
||||||
|
|
||||||
def send_notification(SUBJECT_TEXT, BODY_TEXT):
|
def send_notification(subject_text, body_text):
|
||||||
# Format notification text
|
# Format notification text
|
||||||
try:
|
try:
|
||||||
subject = SUBJECT_TEXT.format()
|
subject = subject_text
|
||||||
body = BODY_TEXT.format()
|
body = body_text
|
||||||
|
|
||||||
except LookupError as e:
|
except LookupError as e:
|
||||||
sys.stderr.write("Unable to substitute '{0}' in the notification subject or body".format(e))
|
sys.stderr.write("Unable to substitute '{0}' in the notification subject or body".format(e))
|
||||||
|
Loading…
Reference in New Issue
Block a user