Skip to content

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminastrand committed Oct 23, 2024
1 parent 08ec754 commit fd53fed
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions fedn/network/api/v1/prediction_routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ def get_predictions():
return jsonify(response), 200
except Exception as e:
return jsonify({"message": f"An unexpected error occurred: {str(e)}"}), 500

Check warning

Code scanning / CodeQL

Information exposure through an exception Medium

Stack trace information
flows to this location and may be exposed to an external user.


@bp.route("/list", methods=["POST"])
@jwt_auth_required(role="admin")
Expand Down Expand Up @@ -280,4 +280,3 @@ def list_predictions():
return jsonify(response), 200
except Exception as e:
return jsonify({"message": f"An unexpected error occurred: {str(e)}"}), 500

Check warning

Code scanning / CodeQL

Information exposure through an exception Medium

Stack trace information
flows to this location and may be exposed to an external user.

0 comments on commit fd53fed

Please sign in to comment.