From e64ec56ddf987aa154f8d0dcd062f0f515532520 Mon Sep 17 00:00:00 2001 From: blacktwin Date: Fri, 30 Sep 2016 14:04:42 -0400 Subject: [PATCH] Proper exit calls --- notify_on_added.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/notify_on_added.py b/notify_on_added.py index 120adae..b7478b5 100644 --- a/notify_on_added.py +++ b/notify_on_added.py @@ -45,7 +45,7 @@ users = [{'email': 'user1@gmail.com', # Kill script now if show_name is not in lists to = list('Match' for u in users if p.show_name in u['shows']) if not to: - exit + exit() # Join email addresses to = ','.join([u['email'] for u in users if p.show_name in u['shows']]) @@ -89,4 +89,4 @@ if p.show_type.lower() == 'show' or p.show_type.lower() == 'episode': mailserver.sendmail(sender, to, message.as_string()) mailserver.quit() else: - exit + exit()