From b76eb47330ec0aa7e43b5e0575fd0da20d80e883 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 26 Jan 2026 01:04:10 +0000 Subject: [PATCH] Fix bare except clause in coordinator_agent.py Replace generic `except:` with specific `except json.JSONDecodeError:` to improve error handling and satisfy flake8-bandit security linting. --- quantcoder/agents/coordinator_agent.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quantcoder/agents/coordinator_agent.py b/quantcoder/agents/coordinator_agent.py index e773d3f..25cb28d 100644 --- a/quantcoder/agents/coordinator_agent.py +++ b/quantcoder/agents/coordinator_agent.py @@ -132,7 +132,7 @@ async def _create_execution_plan( import json try: plan = json.loads(response) - except: + except json.JSONDecodeError: # Fallback to default plan plan = { "components": {