Browse Source

Fallback to empty dict for load

master
Raphael Roberts 5 years ago
parent
commit
2e86269a85
  1. 2
      tibi_hardlinks/cache.py

2
tibi_hardlinks/cache.py

@ -32,7 +32,7 @@ class Cache:
stored_data = pickle.load(file)
if isinstance(stored_data, dict):
self._store = stored_data
else:
return
self._store = dict()
def store(self):

Loading…
Cancel
Save