From fa73d98cd2b1f902149568dc1edbdee9c5512e52 Mon Sep 17 00:00:00 2001 From: Alec Warner Date: Fri, 12 Jan 2007 04:12:45 +0000 Subject: [PATCH] getbinpkg.py fix except: open can be IOERror or OSError and cPickle can throw an unpicklingError svn path=/main/trunk/; revision=5585 --- pym/getbinpkg.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pym/getbinpkg.py b/pym/getbinpkg.py index 6939e4840..c4e7e6793 100644 --- a/pym/getbinpkg.py +++ b/pym/getbinpkg.py @@ -433,9 +433,7 @@ def dir_get_metadata(baseurl, conn=None, chunk_size=3000, verbose=1, usingcache= metadata = cPickle.load(metadatafile) sys.stderr.write("Loaded metadata pickle.\n") metadatafile.close() - except SystemExit, e: - raise - except: + except (cPickle.UnpicklingError, OSError, IOError): metadata = {} if not metadata.has_key(baseurl): metadata[baseurl]={} -- 2.26.2