Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion khal/khalendar/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"""

Expand Down
6 changes: 3 additions & 3 deletions khal/khalendar/khalendar.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
from .event import Event
from .exceptions import (
DuplicateUid,
EtagMissmatch,
EtagMismatch,
NonUniqueUID,
ReadOnlyCalendarError,
UnsupportedFeatureError,
Expand Down Expand Up @@ -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(
Expand All @@ -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)
Expand Down
Loading