diff --git a/khal/khalendar/exceptions.py b/khal/khalendar/exceptions.py index 844472c75..365b0228e 100644 --- a/khal/khalendar/exceptions.py +++ b/khal/khalendar/exceptions.py @@ -38,7 +38,7 @@ class ReadOnlyCalendarError(Error): khal""" -class EtagMissmatch(Error): +class EtagMismatch(Error): """An event is trying to be modified from khal which has also been externally modified""" diff --git a/khal/khalendar/khalendar.py b/khal/khalendar/khalendar.py index 22aed97b6..94e3eda86 100644 --- a/khal/khalendar/khalendar.py +++ b/khal/khalendar/khalendar.py @@ -40,7 +40,7 @@ from .event import Event from .exceptions import ( DuplicateUid, - EtagMissmatch, + EtagMismatch, NonUniqueUID, ReadOnlyCalendarError, UnsupportedFeatureError, @@ -237,7 +237,7 @@ def delete(self, href: str, etag: str | None, calendar: str) -> None: try: self._storages[calendar].delete(href, etag) except WrongEtagError: - raise EtagMissmatch() + raise EtagMismatch() self._backend.delete(href, calendar=calendar) def delete_instance( @@ -255,7 +255,7 @@ def delete_instance( raise ReadOnlyCalendarError() event = self.get_event(href, calendar) if etag and etag != event.etag: - raise EtagMissmatch() + raise EtagMismatch() event.delete_instance(rec_id) self.update(event)