summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/cache/util.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/pym/cache/util.py b/pym/cache/util.py
index 2bfaa76fb..6393deef5 100644
--- a/pym/cache/util.py
+++ b/pym/cache/util.py
@@ -96,7 +96,10 @@ def mirror_cache(valid_nodes_iterable, src_cache, trg_cache, eclass_cache=None,
# ok. by this time, the trg_cache is up to date, and we have a dict
# with a crapload of cpv's. we now walk the target db, removing stuff if it's in the list.
for key in dead_nodes:
- try: del trg_cache[key]
+ try:
+ del trg_cache[key]
+ except KeyError:
+ pass
except cache_errors.CacheError, ce:
noise.exception(ce)
del ce