diff --git a/mycaldav/models.py b/mycaldav/models.py index 13a9870..cae29e6 100644 --- a/mycaldav/models.py +++ b/mycaldav/models.py @@ -198,7 +198,11 @@ class cls_caldav_client(): def format_data_event(self,event): summary = event.vobject_instance.vevent.summary.value + if "-" not in summary: + return False key = summary.split("-") + if "&" not in key[1]: + return False equipage = key[1].split("&") team_1 = "" team_2 = ""