Skip to content

Commit 1e3fa78

Browse files
committed
Testing a potential fix for travis
1 parent 40e6f93 commit 1e3fa78

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

backend/PyMatcha/routes/api/search.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ def search():
6464
if max_distance != -1:
6565
continue
6666
else:
67-
raise BadRequestError("user needs to sets his location first")
67+
if max_distance != -1:
68+
raise BadRequestError("user needs to sets his location first")
6869

6970
user_tags = [t.name for t in user.get_tags()]
7071
common_tags = _get_common_tags(tags, user_tags)

0 commit comments

Comments
 (0)