diff options
author | Zac Medico <zmedico@gentoo.org> | 2011-02-13 19:59:24 -0800 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2011-02-13 19:59:24 -0800 |
commit | 334af57e0511842a3b38db091f2aa33e07615729 (patch) | |
tree | e975f69fa953b6e693458d93e1b6f44599d93dd9 | |
parent | 53f096c5d72dd15336fdf921f29ceae9b5842148 (diff) | |
download | portage-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.
-rw-r--r-- | pym/portage/dbapi/bintree.py | 2 |
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, |