From a1ebc52b39b451f368023b8fb59f000e683ac54b Mon Sep 17 00:00:00 2001 From: Unrud Date: Fri, 2 Jun 2017 14:19:53 +0200 Subject: [PATCH] Don't delete cache entry that gets overwritten It's unnecessary. --- radicale/storage.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/radicale/storage.py b/radicale/storage.py index d1e8a719..0e0f1804 100644 --- a/radicale/storage.py +++ b/radicale/storage.py @@ -796,11 +796,6 @@ class Collection(BaseCollection): self.logger.warning( "Failed to load history cache entry %r in %r: %s", href, self.path, e, exc_info=True) - # Delete the damaged file - try: - os.remove(os.path.join(history_folder, href)) - except (FileNotFoundError, PermissionError): - pass cache_etag = "" # Initialize with random data to prevent collisions with cleaned # expired items.