From: Zac Medico Date: Mon, 14 Feb 2011 03:59:24 +0000 (-0800) Subject: Fix unhandled FileNotFound from previous commit. X-Git-Tag: v2.1.9.40~13 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b4fdd78bb0e61c5cca3a55b23fdd2ac3b5141543;p=portage.git Fix unhandled FileNotFound from previous commit. There is an existing handler for EnvironmentError, so raise that instead of FileNotFound. --- 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,