EOFError is also important according to Zac
authorAlec Warner <antarus@gentoo.org>
Fri, 12 Jan 2007 04:26:32 +0000 (04:26 -0000)
committerAlec Warner <antarus@gentoo.org>
Fri, 12 Jan 2007 04:26:32 +0000 (04:26 -0000)
svn path=/main/trunk/; revision=5586

pym/getbinpkg.py

index c4e7e679375ca61e2f6039d1a56a38abac41c5b5..708897d8feac31e5e64c069864bd887263fb6fa8 100644 (file)
@@ -433,7 +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 (cPickle.UnpicklingError, OSError, IOError):
+       except (cPickle.UnpicklingError, OSError, IOError, EOFError):
                metadata = {}
        if not metadata.has_key(baseurl):
                metadata[baseurl]={}