From d9e963ef749e44cec6fe6ed11a766935be2bbf07 Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Mon, 15 Jun 2026 22:31:55 +0200 Subject: [PATCH] auto-git: [change] backend/chat_memory.py --- backend/chat_memory.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/chat_memory.py b/backend/chat_memory.py index d15df2c..0842dc6 100644 --- a/backend/chat_memory.py +++ b/backend/chat_memory.py @@ -90,7 +90,8 @@ def _attachment_summary(raw_value: Any) -> str: except Exception: return "" labels: List[str] = [] - for item in items if isinstance(items, list) else []: + iterable = items if isinstance(items, list) else [] + for item in iterable: if not isinstance(item, dict): continue name = str(item.get("name") or item.get("source_path") or "").strip()