From 3e1ec23409393aea4a7c1fc518120a780105dfc2 Mon Sep 17 00:00:00 2001 From: Alex Date: Wed, 16 Apr 2025 15:47:39 +0100 Subject: [PATCH] fix: lint --- application/api/user/routes.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/application/api/user/routes.py b/application/api/user/routes.py index 48e8c08a..8876be6b 100644 --- a/application/api/user/routes.py +++ b/application/api/user/routes.py @@ -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,