Fix unhandled FileNotFound from previous commit.
authorZac Medico <zmedico@gentoo.org>
Mon, 14 Feb 2011 03:59:24 +0000 (19:59 -0800)
committerZac Medico <zmedico@gentoo.org>
Mon, 14 Feb 2011 03:59:24 +0000 (19:59 -0800)
There is an existing handler for EnvironmentError, so raise that
instead of FileNotFound.

pym/portage/dbapi/bintree.py

index 78eb4299982a8fe68b2919ba6af2e07859430e49..16b79db4776d94fb288b4c5518cd2575aa66532e 100644 (file)
@@ -807,7 +807,7 @@ class binarytree(object):
                                                success = portage.getbinpkg.file_get(url,
                                                     tmp_dirname, fcmd=fcmd, filename=tmp_basename)
                                                if not success:
-                                                       raise portage.exception.FileNotFound(url)
+                                                       raise EnvironmentError("%s failed" % (setting,))
                                                f = open(tmp_filename, 'rb')
 
                                f_dec = codecs.iterdecode(f,