From 6a850a5cc78ff67a2d7819becf9bee4aa2c4bb59 Mon Sep 17 00:00:00 2001 From: Inso <insomniak.fr@gmail.com> Date: Sun, 13 Sep 2015 00:09:44 +0200 Subject: [PATCH] Fix search in wot tab --- src/cutecoin/gui/wot_tab.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/cutecoin/gui/wot_tab.py b/src/cutecoin/gui/wot_tab.py index 3a12fbc5..0b28e07e 100644 --- a/src/cutecoin/gui/wot_tab.py +++ b/src/cutecoin/gui/wot_tab.py @@ -244,6 +244,8 @@ class WotTabWidget(QWidget, Ui_WotTabWidget): else: self.reset() + @asyncify + @asyncio.coroutine def search(self): """ Search nodes when return is pressed in combobox lineEdit @@ -252,11 +254,7 @@ class WotTabWidget(QWidget, Ui_WotTabWidget): if len(text) < 2: return False - try: - response = self.community.simple_request(bma.wot.Lookup, {'search': text}) - except Exception as e: - logging.debug('bma.wot.Lookup request error : ' + str(e)) - return False + response = yield from self.community.bma_access.future_request(bma.wot.Lookup, {'search': text}) nodes = {} for identity in response['results']: -- GitLab