From a0cd7cf0191f27589dd2504dd6ab55199b78e7c7 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Mon, 22 Apr 2013 09:35:27 -0700 Subject: [PATCH] search: fix RuntimeError: No active exception --- pym/_emerge/search.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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: -- 2.26.2