Skip to content

Commit 949df4f

Browse files
authored
Fix a bug in loading davobject (Lark, Feishu)
Fixes #505 Discussions in #506
1 parent 20dcb38 commit 949df4f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

caldav/calendarobjectresource.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -631,11 +631,11 @@ def load(self, only_if_unloaded: bool = False) -> Self:
631631
r = self.client.request(str(self.url))
632632
if r.status and r.status == 404:
633633
raise error.NotFoundError(errmsg(r))
634+
self.data = r.raw
634635
except error.NotFoundError:
635636
raise
636637
except:
637-
self.load_by_multiget()
638-
self.data = vcal.fix(r.raw)
638+
return self.load_by_multiget()
639639
if "Etag" in r.headers:
640640
self.props[dav.GetEtag.tag] = r.headers["Etag"]
641641
if "Schedule-Tag" in r.headers:

0 commit comments

Comments
 (0)