Skip to content

Commit 183c426

Browse files
soundstormtobixen
authored andcommitted
Skip nonexisting calendars
Fixes #468
1 parent 58a70f7 commit 183c426

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

caldav/objects.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -454,6 +454,8 @@ def calendars(self) -> List["Calendar"]:
454454
for c_url, c_type, c_name in data:
455455
try:
456456
cal_id = c_url.split("/")[-2]
457+
if not cal_id:
458+
continue
457459
except:
458460
log.error(f"Calendar {c_name} has unexpected url {c_url}")
459461
cal_id = None

0 commit comments

Comments
 (0)