From: Zac Medico Date: Mon, 22 Apr 2013 16:35:27 +0000 (-0700) Subject: search: fix RuntimeError: No active exception X-Git-Tag: v2.2.0_alpha174~19 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a0cd7cf0191f27589dd2504dd6ab55199b78e7c7;p=portage.git search: fix RuntimeError: No active exception --- diff --git a/pym/_emerge/search.py b/pym/_emerge/search.py index 5abc8a00c..bd74fb7b1 100644 --- a/pym/_emerge/search.py +++ b/pym/_emerge/search.py @@ -1,4 +1,4 @@ -# Copyright 1999-2011 Gentoo Foundation +# Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 from __future__ import print_function @@ -69,7 +69,7 @@ class search(object): return db.aux_get(*args, **kwargs) except KeyError: pass - raise + raise KeyError(args[0]) def _findname(self, *args, **kwargs): for db in self._dbs: