From f33dabbb7dd44c9b1323a073f9d322417bec2870 Mon Sep 17 00:00:00 2001 From: Malin Date: Mon, 13 Apr 2026 21:03:56 +0200 Subject: [PATCH] fix: close missing triple-quote on _build_prompt f-string (SyntaxError) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The f-string in _build_prompt was never closed — the }} at end of the JSON template was missing the closing \"\"\". Python consumed the entire rest of the file as f-string content, then tried to evaluate the {\s\S} regex braces as an f-string expression, giving "unexpected character after line continuation character". Also bundles the earlier timeout fixes (SSL handshake, DNS, analyze_site 90s cap, _assess_one 180s cap, worker reset of stale running jobs). Co-Authored-By: Claude Sonnet 4.6 --- app/replicate_ai.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/replicate_ai.py b/app/replicate_ai.py index 7520e62..aaa6e8e 100644 --- a/app/replicate_ai.py +++ b/app/replicate_ai.py @@ -123,7 +123,7 @@ Respond ONLY with valid JSON, no markdown fences, no text outside the JSON: "services_needed": ["service1","service2"], "urgency_signals": ["specific urgent issues like 'SSL expires in 12 days', 'lorem ipsum on homepage', 'no cookie banner'"], "outreach_notes": "sales rep context" -}} +}}""" def _parse_output(raw: str) -> dict: