commit:     698bbcc494e06719cdbb0522aff6a5fb0d249b36
Author:     Zac Medico <zmedico <AT> gentoo <DOT> org>
AuthorDate: Tue Apr 24 06:31:32 2018 +0000
Commit:     Zac Medico <zmedico <AT> gentoo <DOT> org>
CommitDate: Tue Apr 24 06:55:20 2018 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=698bbcc4

portdbapi.async_fetch_map: fix future.exception() reference

Fixes: 8002d9343c38 ("portdbapi: add async_fetch_map method (bug 653810)")

 pym/portage/dbapi/porttree.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pym/portage/dbapi/porttree.py b/pym/portage/dbapi/porttree.py
index 8a5fc690c..975f03d5e 100644
--- a/pym/portage/dbapi/porttree.py
+++ b/pym/portage/dbapi/porttree.py
@@ -759,7 +759,7 @@ class portdbapi(dbapi):
                        if result.cancelled():
                                return
                        if aux_get_future.exception() is not None:
-                               if isinstance(future.exception(), 
PortageKeyError):
+                               if isinstance(aux_get_future.exception(), 
PortageKeyError):
                                        # Convert this to an 
InvalidDependString exception since
                                        # callers already handle it.
                                        
result.set_exception(portage.exception.InvalidDependString(

Reply via email to