From e7115e396a75d42e2137b03d819328413fd9da8e Mon Sep 17 00:00:00 2001 From: dekun Date: Fri, 7 Aug 2026 17:14:07 +0800 Subject: [PATCH] Fix SyntaxError in open_capacity that crashed the API. Co-authored-by: Cursor --- backend/app/strategy/open_capacity.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/app/strategy/open_capacity.py b/backend/app/strategy/open_capacity.py index dea111a..b7d25d9 100644 --- a/backend/app/strategy/open_capacity.py +++ b/backend/app/strategy/open_capacity.py @@ -152,8 +152,8 @@ def assess_open_capacity( ca = float(snap.call.ask) if pa is None and snap.put and snap.put.ask: pa = float(snap.put.ask) - except Exception: - pass + except Exception: + pass if ca is not None and pa is not None and ca > 0 and pa > 0: call_q = float(opt_qty) put_q = float(