소스 검색

Don't delete cache entry that gets overwritten

It's unnecessary.
Unrud 8 년 전
부모
커밋
a1ebc52b39
1개의 변경된 파일0개의 추가작업 그리고 5개의 파일을 삭제
  1. 0 5
      radicale/storage.py

+ 0 - 5
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.