Skip to content

Commit 3ba0fce

Browse files
Diax170WhyNotHugo
authored andcommitted
refactor: fix typo (EtagMissmatch -> EtagMismatch)
1 parent 0c8e4bb commit 3ba0fce

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎khal/khalendar/exceptions.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class ReadOnlyCalendarError(Error):
3838
khal"""
3939

4040

41-
class EtagMissmatch(Error):
41+
class EtagMismatch(Error):
4242
"""An event is trying to be modified from khal which has also been externally
4343
modified"""
4444

‎khal/khalendar/khalendar.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
from .event import Event
4141
from .exceptions import (
4242
DuplicateUid,
43-
EtagMissmatch,
43+
EtagMismatch,
4444
NonUniqueUID,
4545
ReadOnlyCalendarError,
4646
UnsupportedFeatureError,
@@ -237,7 +237,7 @@ def delete(self, href: str, etag: str | None, calendar: str) -> None:
237237
try:
238238
self._storages[calendar].delete(href, etag)
239239
except WrongEtagError:
240-
raise EtagMissmatch()
240+
raise EtagMismatch()
241241
self._backend.delete(href, calendar=calendar)
242242

243243
def delete_instance(
@@ -255,7 +255,7 @@ def delete_instance(
255255
raise ReadOnlyCalendarError()
256256
event = self.get_event(href, calendar)
257257
if etag and etag != event.etag:
258-
raise EtagMissmatch()
258+
raise EtagMismatch()
259259

260260
event.delete_instance(rec_id)
261261
self.update(event)

0 commit comments

Comments
 (0)