From: Thierry Parmentelat Date: Wed, 5 Nov 2014 08:34:46 +0000 (+0100) Subject: instrument the email-checking code to expose problematic email address in exception X-Git-Tag: plcapi-5.3-6~3 X-Git-Url: http://git.onelab.eu/?p=plcapi.git;a=commitdiff_plain;h=5344986ad0926ebb8897c663dd52f6d8e9e7e091 instrument the email-checking code to expose problematic email address in exception --- diff --git a/PLC/Persons.py b/PLC/Persons.py index da432a1..8276c06 100644 --- a/PLC/Persons.py +++ b/PLC/Persons.py @@ -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