git.ithinksw.org
/
philo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Moved the EventQuerySet to its own class instead of nesting it in the Event model.
[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):