From 92c96ae59d01180947e19cd194941cac4d55fbe8 Mon Sep 17 00:00:00 2001 From: Blacktwin Date: Fri, 23 Nov 2018 15:35:21 -0500 Subject: [PATCH] #120 --- notify/notify_added_custom.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notify/notify_added_custom.py b/notify/notify_added_custom.py index 59c7dbf..4129f75 100644 --- a/notify/notify_added_custom.py +++ b/notify/notify_added_custom.py @@ -328,7 +328,7 @@ if __name__ == '__main__': # Gather all users email addresses if opts.users == ['all']: - [to.append(x['email']) for x in get_users() if x['email'] != '' and x['email'] not in to + [to.append(x['email']) for x in get_users() if x['email'] is not None and x['email'] not in to and x['username'] not in opts.ignore] elif opts.users != ['all'] and opts.users != 'self': for get_users in get_users():