aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--wqflask/wqflask/resource_manager.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/wqflask/wqflask/resource_manager.py b/wqflask/wqflask/resource_manager.py
index c0717314..91731a4a 100644
--- a/wqflask/wqflask/resource_manager.py
+++ b/wqflask/wqflask/resource_manager.py
@@ -163,7 +163,7 @@ def search_user(resource_id: str):
user = json.loads(users[user])
for q in (request.form.get("user_name"),
request.form.get("user_email")):
- if q and (q in user.get("email_address") or
- q in user.get("full_name")):
+ if q and (q in user.get("email_address", "") or
+ q in user.get("full_name", "")):
results[user.get("user_id", "")] = user
return json.dumps(tuple(results.values()))