Skip to content
Snippets Groups Projects
Commit 0c945732 authored by inso's avatar inso
Browse files

Fix infinite loop if the lookup does not find the user

parent a4d06b5d
No related branches found
No related tags found
No related merge requests found
......@@ -323,6 +323,7 @@ class Account(QObject):
data = yield from community.bma_access.simple_request(request,
req_args={'search': search})
registered = parsers[request](data)
tries += 1
except ValueError as e:
if '404' in str(e) or '400' in str(e):
if request == bma.wot.CertifiersOf:
......
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