Merge pull request #3814 from modoboa/fix/caldav-compat

Ensure compatibility with caldav > 2.1
This commit is contained in:
Antoine Nguyen
2025-11-25 09:56:01 +01:00
committed by GitHub
2 changed files with 4 additions and 2 deletions
+3 -1
View File
@@ -23,7 +23,9 @@ class Caldav_Backend(CalendarBackend):
"""Constructor."""
super().__init__(calendar)
server_url = smart_str(param_tools.get_global_parameter("server_location"))
self.client = caldav.DAVClient(server_url, username=username, password=password)
self.client = caldav.DAVClient(
server_url, username=username, password=str(password)
)
if self.calendar:
self.remote_cal = Calendar(self.client, calendar.encoded_path)
+1 -1
View File
@@ -77,7 +77,7 @@ dependencies = [
# User
"drf-nested-routers",
"vobject",
"caldav==2.0.1",
"caldav==2.1.2",
# Amavis
"html2text",
"idna",