diff --git a/calendar_utils/models.py b/calendar_utils/models.py index c733fe7dc16446b7e56847b0e962f79d5f85b09a..fe8ad22da8c10c55ca576e6b4298b79f9031e1e0 100644 --- a/calendar_utils/models.py +++ b/calendar_utils/models.py @@ -3,7 +3,7 @@ from datetime import date, timedelta import arrow from django.core.serializers.json import DjangoJSONEncoder -from django.core.validators import URLValidator +from django.core.validators import URLValidator, ValidationError from django.db import models from icalevents import icalevents @@ -34,7 +34,7 @@ class EventsJSONField(models.JSONField): try: urlValidator(event.get("location")) event["url"] = event.get("location") - except: + except ValidationError: pass return value