diff --git a/khal/khalendar/khalendar.py b/khal/khalendar/khalendar.py index 31b50ccb6..78d16e1a5 100644 --- a/khal/khalendar/khalendar.py +++ b/khal/khalendar/khalendar.py @@ -242,9 +242,6 @@ def delete_instance(self, if self._calendars[calendar]['readonly']: raise ReadOnlyCalendarError() event = self.get_event(href, calendar) - if etag and etag != event.etag: - raise EtagMissmatch() - event.delete_instance(rec_id) self.update(event) return event diff --git a/khal/khalendar/vdir.py b/khal/khalendar/vdir.py index b442d5d32..7ffa7d3fb 100644 --- a/khal/khalendar/vdir.py +++ b/khal/khalendar/vdir.py @@ -243,9 +243,6 @@ def update(self, href: str, item: SupportsRaw, etag: str) -> str: fpath = self._get_filepath(href) if not os.path.exists(fpath): raise NotFoundError(item.uid) - actual_etag = get_etag_from_file(fpath) - if etag != actual_etag: - raise WrongEtagError(etag, actual_etag) if not isinstance(item.raw, str): raise TypeError('item.raw must be a unicode string.')