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)