From 36f4c0aebdead335595d94b2448cf9d73dfdf6f3 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Mon, 9 Oct 2006 20:26:21 +0000 Subject: [PATCH] Catch UnpicklingError when loading the mtimedb (reported by marienz). svn path=/main/trunk/; revision=4638 --- pym/portage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- 2.26.2