git.ithinksw.org
/
philo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Tweaked philo migrations to force contenttype creation after migration 0005 so the...
[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):