summaryrefslogtreecommitdiffstats
path: root/pym
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 20:30:55 -0800
commitb4fdd78bb0e61c5cca3a55b23fdd2ac3b5141543 (patch)
treeb1f322be3b39795401c7dcf5edb8911376044eb6 /pym
parent04cd72a0dd768f741f64bc1cf1bbf4367cd877d1 (diff)
downloadportage-b4fdd78bb0e61c5cca3a55b23fdd2ac3b5141543.tar.gz
portage-b4fdd78bb0e61c5cca3a55b23fdd2ac3b5141543.tar.bz2
portage-b4fdd78bb0e61c5cca3a55b23fdd2ac3b5141543.zip
Fix unhandled FileNotFound from previous commit.
There is an existing handler for EnvironmentError, so raise that instead of FileNotFound.
Diffstat (limited to 'pym')
-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 0271bfa48..29c8783e3 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,