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 04:30:55 +0000 (20:30 -0800)
There is an existing handler for EnvironmentError, so raise that
instead of FileNotFound.

pym/portage/dbapi/bintree.py

index 0271bfa48f3fa5059dfdc06994ee24117eff1aac..29c8783e393b69178d483c4bee5172e92336bacf 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,