mirror of
https://github.com/Kozea/Radicale.git
synced 2025-09-15 20:36:55 +00:00
Cosmetics
This commit is contained in:
parent
d3b90506f5
commit
e63a6e0c85
4 changed files with 9 additions and 6 deletions
|
@ -54,7 +54,8 @@ class ApplicationMkcalendarMixin:
|
|||
with self._storage.acquire_lock("w", user):
|
||||
item = next(self._storage.discover(path), None)
|
||||
if item:
|
||||
return self._webdav_error_response("D:resource-must-be-null")
|
||||
return self._webdav_error_response(
|
||||
client.CONFLICT, "D:resource-must-be-null")
|
||||
parent_path = pathutils.unstrip_path(
|
||||
posixpath.dirname(pathutils.strip_path(path)), True)
|
||||
parent_item = next(self._storage.discover(parent_path), None)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue