diff --git a/app.py b/app.py index 8ee11c3..040ea4f 100644 --- a/app.py +++ b/app.py @@ -348,7 +348,7 @@ def _process_analysis_job(job_id: int): if not doc or not prm: raise RuntimeError("Dokument oder Prompt nicht gefunden") - user_extra = (j.get("user_prompt") or "").strip() + user_extra = (j["user_prompt"] or "").strip() if j["user_prompt"] is not None else "" llm_prompt = ( "Du bist ein präziser Assistent. Antworte auf Deutsch.\\n" f"AUFTRAG:\\n{prm['prompt']}\\n"