From 5344986ad0926ebb8897c663dd52f6d8e9e7e091 Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Wed, 5 Nov 2014 09:34:46 +0100 Subject: [PATCH] instrument the email-checking code to expose problematic email address in exception --- PLC/Persons.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.43.0