diff options
author | Zac Medico <zmedico@gentoo.org> | 2006-10-09 20:26:21 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2006-10-09 20:26:21 +0000 |
commit | 36f4c0aebdead335595d94b2448cf9d73dfdf6f3 (patch) | |
tree | 4ad15cd387136af8c4fa1533426fee715d3706f8 | |
parent | c25c996270e9e3d1180492009c046114da7ed1d6 (diff) | |
download | portage-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.py | 2 |
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: |