summaryrefslogtreecommitdiffstats
path: root/pym/portage/dbapi/bintree.py
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2011-02-13 19:59:24 -0800
committerZac Medico <zmedico@gentoo.org>2011-02-13 19:59:24 -0800
commit334af57e0511842a3b38db091f2aa33e07615729 (patch)
treee975f69fa953b6e693458d93e1b6f44599d93dd9 /pym/portage/dbapi/bintree.py
parent53f096c5d72dd15336fdf921f29ceae9b5842148 (diff)
downloadportage-334af57e0511842a3b38db091f2aa33e07615729.tar.gz
portage-334af57e0511842a3b38db091f2aa33e07615729.tar.bz2
portage-334af57e0511842a3b38db091f2aa33e07615729.zip
Fix unhandled FileNotFound from previous commit.
There is an existing handler for EnvironmentError, so raise that instead of FileNotFound.
Diffstat (limited to 'pym/portage/dbapi/bintree.py')
-rw-r--r--pym/portage/dbapi/bintree.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/portage/dbapi/bintree.py b/pym/portage/dbapi/bintree.py
index 78eb42999..16b79db47 100644
--- a/pym/portage/dbapi/bintree.py
+++ b/pym/portage/dbapi/bintree.py
@@ -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,