fix: SyntaxError - f-string 안의 리터럴 중괄호 수정
f"...'{' 없음..." → "...'{' 없음..." + raw[:300]
f-string 안에서 { 리터럴은 구문 오류를 발생시킴
This commit is contained in:
@@ -240,7 +240,7 @@ class AIPlanner:
|
|||||||
# 4. { } 범위 추출 (중첩 괄호 고려)
|
# 4. { } 범위 추출 (중첩 괄호 고려)
|
||||||
start = text.find("{")
|
start = text.find("{")
|
||||||
if start == -1:
|
if start == -1:
|
||||||
raise ValueError(f"JSON 파싱 실패 ('{' 없음):\n{raw[:300]}")
|
raise ValueError("JSON 파싱 실패 ('{' 없음):\n" + raw[:300])
|
||||||
|
|
||||||
# 중첩 괄호 카운팅으로 정확한 끝 위치 찾기
|
# 중첩 괄호 카운팅으로 정확한 끝 위치 찾기
|
||||||
depth = 0
|
depth = 0
|
||||||
|
|||||||
Reference in New Issue
Block a user