Proper exit calls

This commit is contained in:
blacktwin 2016-09-30 14:04:42 -04:00 committed by GitHub
parent 3c6ee9966d
commit e64ec56ddf

View File

@ -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()