Skip to content
This repository has been archived by the owner on Oct 26, 2023. It is now read-only.

Commit

Permalink
Fixed flawed flow control
Browse files Browse the repository at this point in the history
  • Loading branch information
rtrevinnoc committed Mar 10, 2021
1 parent 8b24520 commit e08ba65
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions future.py
Original file line number Diff line number Diff line change
Expand Up @@ -961,7 +961,7 @@ def _answerPeer():
if max(result["url_scores"]) <= minimumScore:
return jsonify(result=result)
else:
raise Exception("No relevant results.")
return jsonify(result={"urls": [], "url_scores": []})#Exception("No relevant results.")


@app.route("/_answerPeerImages")
Expand All @@ -978,7 +978,7 @@ def _answerPeerImages():
if max(result["images_scores"]) <= minimumScore:
return jsonify(result=result)
else:
raise Exception("No relevant results.")
return jsonify(result={"images": [], "images_scores": []})#Exception("No relevant results.")


if __name__ == "__main__":
Expand Down

0 comments on commit e08ba65

Please sign in to comment.