search: fix RuntimeError: No active exception
authorZac Medico <zmedico@gentoo.org>
Mon, 22 Apr 2013 16:35:27 +0000 (09:35 -0700)
committerZac Medico <zmedico@gentoo.org>
Mon, 22 Apr 2013 16:35:27 +0000 (09:35 -0700)
pym/_emerge/search.py

index 5abc8a00cf60fb0d68b21377707dbdc887be49d7..bd74fb7b194195147c10eec7fc05a4e9fae424bd 100644 (file)
@@ -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: