diff --git a/jsoncache/ApplicationCache.py b/jsoncache/ApplicationCache.py index 0a46c96..902ae39 100644 --- a/jsoncache/ApplicationCache.py +++ b/jsoncache/ApplicationCache.py @@ -116,7 +116,7 @@ class ApplicationCache(): if cached_data is not None: return unpacker(cached_data) data = fun(*args, **kwargs) - if not cache_no_store: + if not cache_no_store and data is not None: self.store(key=cache_key, data=packer(data)) return data return decorated