NoNoneStore: Fix incorrect attribute references

This commit is contained in:
Tomas Babej 2015-12-24 15:03:55 +01:00
parent c812448c33
commit 0a1cbfcb39

View file

@ -66,10 +66,10 @@ class NoNoneStore(object):
item = self.store.get(key)
if item is None:
item = get_method(self, key)
item = self.get_method(key)
# If we successfully obtained an item, save it to the cache
if vimwikitask is not None:
if item is not None:
self.store[key] = item
return item # May return None if the line has no task