Skip to content

Commit

Permalink
Add debug logging / catch ReportErrors for FreeBusy
Browse files Browse the repository at this point in the history
  • Loading branch information
MelissaAutumn committed Oct 31, 2024
1 parent d5dd57e commit 7282df2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backend/src/appointment/controller/calendar.py
Original file line number Diff line number Diff line change
Expand Up @@ -757,7 +757,8 @@ def existing_events_for_schedule(

# We're good here, continue along the loop
continue
except requests.exceptions.ConnectionError:
except caldav.lib.error.ReportError:
logging.debug("[Tools.existing_events_for_schedule] CalDAV server does not support FreeBusy API.")
pass

# Okay maybe this server doesn't support freebusy, try the old way
Expand Down

0 comments on commit 7282df2

Please sign in to comment.