summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/portage/dbapi/bintree.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pym/portage/dbapi/bintree.py b/pym/portage/dbapi/bintree.py
index d15f00b8b..9d9b84005 100644
--- a/pym/portage/dbapi/bintree.py
+++ b/pym/portage/dbapi/bintree.py
@@ -476,9 +476,9 @@ class binarytree(object):
d.clear()
if d:
try:
- if long(d.get("SIZE")) != long(s.st_size):
+ if long(d["SIZE"]) != long(s.st_size):
d.clear()
- except ValueError:
+ except (KeyError, ValueError):
d.clear()
d["CPV"] = mycpv