git://git.onelab.eu
/
plcapi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
4ee3e52
)
instrument the email-checking code to expose problematic email address in exception
author
Thierry Parmentelat
<thierry.parmentelat@inria.fr>
Wed, 5 Nov 2014 08:34:46 +0000
(09:34 +0100)
committer
Thierry Parmentelat
<thierry.parmentelat@inria.fr>
Wed, 5 Nov 2014 08:34:46 +0000
(09:34 +0100)
PLC/Persons.py
patch
|
blob
|
history
diff --git
a/PLC/Persons.py
b/PLC/Persons.py
index
da432a1
..
8276c06
100644
(file)
--- a/
PLC/Persons.py
+++ b/
PLC/Persons.py
@@
-78,7
+78,7
@@
class Person(Row):
Validate email address. Stolen from Mailman.
"""
email = email.lower()
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
if not email:
raise invalid_email