Skip to content

Commit

Permalink
Also ignore 404 errors during delete for conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
telotortium committed Mar 15, 2023
1 parent 55d6ed9 commit e6a5743
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vdirsyncer/storage/dav.py
Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,7 @@ async def update(self, href, item, etag):
rv = await self._put(self._normalize_href(href), item, None)
except aiohttp.ClientResponseError as delerr:
dav_logger.debug(f"delerr.status = {delerr.status}")
if delerr.status == 404:
if delerr.status == 403 || delerr.status == 404:
dav_logger("Old event not found, ignoring")
rv = None, None
else:
Expand All @@ -628,7 +628,7 @@ async def upload(self, item: Item):
rv = await self._put(href, item, None)
except aiohttp.ClientResponseError as delerr:
dav_logger.debug(f"delerr.status = {delerr.status}")
if delerr.status == 404:
if delerr.status == 403 || delerr.status == 404:
dav_logger.debug("Old event not found, ignoring")
rv = None, None
else:
Expand Down

0 comments on commit e6a5743

Please sign in to comment.