Cancel mkcalendar request on error

This commit is contained in:
Unrud 2020-10-11 19:13:10 +02:00
parent 4d4b040b81
commit b4c76c94ad

View File

@ -52,6 +52,7 @@ class ApplicationMkcalendarMixin:
except ValueError as e:
logger.warning(
"Bad MKCALENDAR request on %r: %s", path, e, exc_info=True)
return httputils.BAD_REQUEST
with self._storage.acquire_lock("w", user):
item = next(self._storage.discover(path), None)
if item: