From 8d87921dee79bcd3bedc49dc427f47a4b7ca6694 Mon Sep 17 00:00:00 2001 From: Proudlock <270015376@geaerospace.com> Date: Mon, 14 Sep 2026 14:20:36 -0400 Subject: [PATCH] Fix syntax error in certificate renewal endpoint Remove duplicate 'if not asset:' line that caused IndentationError Co-Authored-By: Claude Sonnet 4.5 --- plugins/endpoints/api/routes.py | 1 - 1 file changed, 1 deletion(-) diff --git a/plugins/endpoints/api/routes.py b/plugins/endpoints/api/routes.py index 1dad1e25..440f7ce0 100644 --- a/plugins/endpoints/api/routes.py +++ b/plugins/endpoints/api/routes.py @@ -3508,7 +3508,6 @@ def renew_client_certificate(): # Row-level lock to prevent concurrent renewal requests from racing asset = db.session.query(Asset).with_for_update().filter_by(assetid=asset_id).first() - if not asset: if not asset: return error_response(ErrorCodes.NOT_FOUND, f'Asset {asset_id} not found', http_code=404)