fix: SyntaxError - f-string 안의 리터럴 중괄호 수정

f"...'{' 없음..." → "...'{' 없음..." + raw[:300]
f-string 안에서 { 리터럴은 구문 오류를 발생시킴
This commit is contained in:
2026-03-25 15:18:11 +09:00
parent ce355a2678
commit 37c71e85c5

View File

@@ -240,7 +240,7 @@ class AIPlanner:
# 4. { } 범위 추출 (중첩 괄호 고려)
start = text.find("{")
if start == -1:
raise ValueError(f"JSON 파싱 실패 ('{' 없음):\n{raw[:300]}")
raise ValueError("JSON 파싱 실패 ('{' 없음):\n" + raw[:300])
# 중첩 괄호 카운팅으로 정확한 끝 위치 찾기
depth = 0