fix: lint

This commit is contained in:
Alex
2025-04-16 15:47:39 +01:00
parent 2f9f428a2f
commit 3e1ec23409

View File

@@ -1157,6 +1157,7 @@ class UpdateAgent(Resource):
existing_agent = agents_collection.find_one({"_id": oid, "user": user})
except Exception as err:
return make_response(
current_app.logger.error(f"Error finding agent {agent_id}: {err}"),
jsonify({"success": False, "message": "Database error finding agent"}),
500,
)
@@ -1204,7 +1205,7 @@ class UpdateAgent(Resource):
jsonify(
{
"success": False,
"message": f"Invalid source ID format provided",
"message": "Invalid source ID format provided",
}
),
400,