Skip to content
Snippets Groups Projects
Commit 6a850a5c authored by inso's avatar inso
Browse files

Fix search in wot tab

parent 10baa721
No related branches found
No related tags found
No related merge requests found
......@@ -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']:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment