summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2019-02-13 08:57:52 +0200
committerLars Wirzenius <liw@liw.fi>2019-02-13 08:57:52 +0200
commit1c474a6713b485bac16f2ce166ff87c014d6f5a5 (patch)
tree14c3652c2f8c2bf6de5051bae9cea7e3e90ad30d
parentf47e49ebfd6bcda2e20e3251ef9bdf96016f8164 (diff)
downloadvmdb2-1c474a6713b485bac16f2ce166ff87c014d6f5a5.tar.gz
Fix: handle missing 'cached' tag (assume set to False)
-rw-r--r--vmdb/tags.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/vmdb/tags.py b/vmdb/tags.py
index 1dccfc5..e2241b0 100644
--- a/vmdb/tags.py
+++ b/vmdb/tags.py
@@ -47,7 +47,7 @@ class Tags:
def is_cached(self, tag):
item = self._get(tag)
- return item['cached']
+ return item.get('cached', False)
def append(self, tag):
if tag in self._tags: