Skip to content

Commit 8c03d50

Browse files
committed
fix bug from Eric Attou
1 parent b8cd5cb commit 8c03d50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pyff/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ def search_handler(request: Request) -> Response:
447447
:param request: the HTTP request with the 'query' request parameter
448448
:return: a JSON search result
449449
"""
450-
match = request.params.get('q', request.params.get('query', None))
450+
match = request.params.get('q', request.params.get('query', ""))
451451

452452
# Enable matching on scope.
453453
match = match.split('@').pop() if match and not match.endswith('@') else match

0 commit comments

Comments
 (0)