We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2eca0a8 + cc4b621 commit 9135c19Copy full SHA for 9135c19
1 file changed
app.py
@@ -249,7 +249,8 @@ def api_list_rules():
249
})
250
return jsonify({"success": True, "rules": rules})
251
except Exception as e:
252
- return jsonify({"success": False, "error": str(e)}), 400
+ logging.exception("Unexpected error in api_list_rules")
253
+ return jsonify({"success": False, "error": "An internal error occurred while listing the rules."}), 400
254
255
256
@app.route("/api/library/load/<filename>", methods=["GET"])
0 commit comments