git.ithinksw.org
/
philo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'master' into gilbert
[philo.git]
/
validators.py
diff --git
a/validators.py
b/validators.py
index
1305afb
..
8b39abd
100644
(file)
--- a/
validators.py
+++ b/
validators.py
@@
-45,8
+45,8
@@
class URLLinkValidator(RegexValidator):
def json_validator(value):
try:
json.loads(value)
- except:
- raise ValidationError(u'
\'%s\' is not valid JSON' % valu
e)
+ except
Exception, e
:
+ raise ValidationError(u'
JSON decode error: %s' %
e)
class TemplateValidationParser(Parser):