instrument the email-checking code to expose problematic email address in exception
Thierry Parmentelat [Wed, 5 Nov 2014 08:34:46 +0000 (09:34 +0100)]
PLC/Persons.py

index da432a1..8276c06 100644 (file)
@@ -78,7 +78,7 @@ class Person(Row):
         Validate email address. Stolen from Mailman.
         """
         email = email.lower()
-        invalid_email = PLCInvalidArgument("Invalid e-mail address")
+        invalid_email = PLCInvalidArgument("Invalid e-mail address %s"%email)
 
         if not email:
             raise invalid_email