mirror of
https://github.com/blacktwin/JBOPS.git
synced 2025-12-14 20:25:37 +00:00
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
|
# Kill script now if show_name is not in lists
|
||||||
to = list('Match' for u in users if p.show_name in u['shows'])
|
to = list('Match' for u in users if p.show_name in u['shows'])
|
||||||
if not to:
|
if not to:
|
||||||
exit
|
exit()
|
||||||
|
|
||||||
# Join email addresses
|
# Join email addresses
|
||||||
to = ','.join([u['email'] for u in users if p.show_name in u['shows']])
|
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.sendmail(sender, to, message.as_string())
|
||||||
mailserver.quit()
|
mailserver.quit()
|
||||||
else:
|
else:
|
||||||
exit
|
exit()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user