Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Maják
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TO
Maják
Commits
4221e760
Commit
4221e760
authored
1 year ago
by
jindra12
Committed by
jan.bednarik
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
More precise exceptions
#181
parent
f5c07140
No related branches found
No related tags found
2 merge requests
!787
Release
,
!745
Add support for generic links in events location in calendar
Pipeline
#12668
passed
1 year ago
Stage: build
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
calendar_utils/models.py
+2
-2
2 additions, 2 deletions
calendar_utils/models.py
with
2 additions
and
2 deletions
calendar_utils/models.py
+
2
−
2
View file @
4221e760
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment