Proper exit calls
This commit is contained in:
parent
3c6ee9966d
commit
e64ec56ddf
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user