From df836b212847aa1cf028a329e394b6b45dabf6ba Mon Sep 17 00:00:00 2001 From: OliMoli Date: Fri, 9 Oct 2026 19:54:05 +0200 Subject: [PATCH] refactor: fix typo (EtagMissmatch -> EtagMismatch) --- khal/khalendar/exceptions.py | 2 +- khal/khalendar/khalendar.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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)