From b4fdd78bb0e61c5cca3a55b23fdd2ac3b5141543 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sun, 13 Feb 2011 19:59:24 -0800 Subject: Fix unhandled FileNotFound from previous commit. There is an existing handler for EnvironmentError, so raise that instead of FileNotFound. --- pym/portage/dbapi/bintree.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pym') 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, -- cgit v1.2.3-1-g7c22