Skip to content

Commit

Permalink
Fix project not found should raise 404 (asreview#1430)
Browse files Browse the repository at this point in the history
  • Loading branch information
J535D165 authored May 7, 2023
1 parent def8e30 commit 8ea01ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion asreview/webapp/api/projects.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def value_error(e):
def project_not_found(e):
message = str(e) if str(e) else "Project not found."
logging.error(message)
return jsonify(message=message), 400
return jsonify(message=message), 404


@bp.errorhandler(InternalServerError)
Expand Down

0 comments on commit 8ea01ec

Please sign in to comment.