diff --git a/django_jsonforms/forms.py b/django_jsonforms/forms.py index 94b23be..4fff5ee 100644 --- a/django_jsonforms/forms.py +++ b/django_jsonforms/forms.py @@ -75,7 +75,7 @@ def to_python(self, value): if isinstance(value, str): try: return json.loads(value) - except: + except json.JSONDecodeError: raise ValidationError('Invalid JSON') return value