From 2e86269a85b7be82979f298c391dbc20f7783c2d Mon Sep 17 00:00:00 2001 From: Raphael Roberts Date: Wed, 17 Mar 2021 00:45:51 -0500 Subject: [PATCH] Fallback to empty dict for load --- tibi_hardlinks/cache.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tibi_hardlinks/cache.py b/tibi_hardlinks/cache.py index 51d2042..c960106 100644 --- a/tibi_hardlinks/cache.py +++ b/tibi_hardlinks/cache.py @@ -32,8 +32,8 @@ class Cache: stored_data = pickle.load(file) if isinstance(stored_data, dict): self._store = stored_data - else: - self._store = dict() + return + self._store = dict() def store(self): with lzma.open(self.filepath, "wb") as file: