Skip to content

Commit

Permalink
Check if service is explicitly not supported
Browse files Browse the repository at this point in the history
  • Loading branch information
MelissaAutumn committed Oct 10, 2024
1 parent 92908a0 commit 7d0a4ef
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions backend/src/appointment/controller/calendar.py
Original file line number Diff line number Diff line change
Expand Up @@ -768,6 +768,10 @@ def dns_caldav_lookup(url, secure=True):
port = str(records[0].port)
caldav_host = str(records[0].target)[:-1]

# Service not provided
if caldav_host == ".":
return None, None

if '://' in caldav_host:
# Remove any protocols first!
caldav_host.replace('http://', '').replace('https://', '')
Expand Down

0 comments on commit 7d0a4ef

Please sign in to comment.