diff --git a/backend/app/api/simulation.py b/backend/app/api/simulation.py index d63cc15b..0b38fbf2 100644 --- a/backend/app/api/simulation.py +++ b/backend/app/api/simulation.py @@ -2721,6 +2721,8 @@ def patch_agent(simulation_id: str, user_id: int): return jsonify({"success": False, "error": str(e)}), 403 except LookupError as e: return jsonify({"success": False, "error": str(e)}), 404 + except FileNotFoundError as e: + return jsonify({"success": False, "error": str(e)}), 404 return jsonify({"success": True, "data": updated}) except Exception as e: