diff --git a/src/cutecoin/gui/wot_tab.py b/src/cutecoin/gui/wot_tab.py index 3a12fbc56d9310bb9f55984293c1f5eed4f3259a..0b28e07e7ba6c702065107ebf1e7dbf9edbf0f3b 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']: