summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-10-09 20:26:21 +0000
committerZac Medico <zmedico@gentoo.org>2006-10-09 20:26:21 +0000
commit36f4c0aebdead335595d94b2448cf9d73dfdf6f3 (patch)
tree4ad15cd387136af8c4fa1533426fee715d3706f8
parentc25c996270e9e3d1180492009c046114da7ed1d6 (diff)
downloadportage-36f4c0aebdead335595d94b2448cf9d73dfdf6f3.tar.gz
portage-36f4c0aebdead335595d94b2448cf9d73dfdf6f3.tar.bz2
portage-36f4c0aebdead335595d94b2448cf9d73dfdf6f3.zip
Catch UnpicklingError when loading the mtimedb (reported by marienz).
svn path=/main/trunk/; revision=4638
-rw-r--r--pym/portage.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/portage.py b/pym/portage.py
index 579c3f5a0..c0286ca09 100644
--- a/pym/portage.py
+++ b/pym/portage.py
@@ -6897,7 +6897,7 @@ class MtimeDB(dict):
d = mypickle.load()
f.close()
del f
- except (IOError, OSError, EOFError):
+ except (IOError, OSError, EOFError, cPickle.UnpicklingError):
d = {}
if "old" in d: