From 0758f45865b39bb1e122785a35aa7429c0206a2d Mon Sep 17 00:00:00 2001 From: Raphael Roberts Date: Wed, 17 Mar 2021 00:44:58 -0500 Subject: [PATCH] 'store' is a function, '_store' is a dict --- 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 bf34060..51d2042 100644 --- a/tibi_hardlinks/cache.py +++ b/tibi_hardlinks/cache.py @@ -13,7 +13,7 @@ class Cache: atexit.register(self.store) def read(self, key): - if self.store is None: + if self._store is None: self.load() try: return self._store[key] @@ -21,7 +21,7 @@ class Cache: return None def write(self, key, data): - if self.store is None: + if self._store is None: self.load() self._store[key] = data