We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 689075c commit 0e0fe62Copy full SHA for 0e0fe62
1 file changed
caldav/calendarobjectresource.py
@@ -621,7 +621,14 @@ def load_by_multiget(self) -> Self:
621
"""
622
error.assert_(self.url)
623
mydata = self.parent._multiget(event_urls=[self.url], raise_notfound=True)
624
- url, self.data = next(mydata)
+ try:
625
+ url, self.data = next(mydata)
626
+ except StopIteration:
627
+ ## We shouldn't come here. Something is wrong.
628
+ ## TODO: research it
629
+ ## As of 2025-05-20, this code section is used by
630
+ ## TestForServerECloud::testCreateOverwriteDeleteEvent
631
+ raise error.NotFoundError(self.url)
632
assert_(self.data)
633
assert_(next(mydata, None) is None)
634
return self
0 commit comments