Skip to content

Commit

Permalink
Update error to warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
huaszu committed Apr 22, 2023
1 parent 6773aa4 commit 3ac2e08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/posts.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def fetch_posts():
if not parsed_author_ids: # Also helps to avoid the problem that subsequently
# running `Post.query.with_parent(user).all()` on users that do not
# exist will give an error
return jsonify({"error": "None of the author id(s) you requested exist in the database."}), 200
return jsonify({"warning": "None of the author id(s) you requested exist in the database."}), 200

posts_of_authors: set[Post] = set()

Expand Down

0 comments on commit 3ac2e08

Please sign in to comment.