Catch IOError when loading the mtimedb.
authorZac Medico <zmedico@gentoo.org>
Tue, 25 Apr 2006 03:48:04 +0000 (03:48 -0000)
committerZac Medico <zmedico@gentoo.org>
Tue, 25 Apr 2006 03:48:04 +0000 (03:48 -0000)
svn path=/main/trunk/; revision=3222

pym/portage.py

index 1dc1a999c4bd8d8b12b374f7187b96c632f56a63..b957b2071389a43004b2e7d1edf6c6d796db862b 100644 (file)
@@ -6837,7 +6837,7 @@ try:
        mtimedb = load_mtimedb(f)
        f.close()
        del f
-except OSError:
+except (IOError, OSError):
        mtimedb = {"updates":{}, "version":"", "starttime":0}
 
 features=settings["FEATURES"].split()