Do not warn about empty email address
authorStefan Hajnoczi <stefanha@gmail.com>
Sun, 28 Jun 2009 08:00:56 +0000 (09:00 +0100)
committerStefan Hajnoczi <stefanha@gmail.com>
Sun, 28 Jun 2009 08:00:56 +0000 (09:00 +0100)
utils.py

index 4d8e733..2792685 100644 (file)
--- a/utils.py
+++ b/utils.py
@@ -17,7 +17,7 @@ def email_log(to_address, subject, logfile, aliases):
             email_addresses.append(a)
         elif a in aliases:
             email_addresses.append(aliases[a])
             email_addresses.append(a)
         elif a in aliases:
             email_addresses.append(aliases[a])
-        else:
+        elif a:
             unrecognized.append(a)
     if email_addresses:
         header = '''From: %(from_address)s
             unrecognized.append(a)
     if email_addresses:
         header = '''From: %(from_address)s