diff --git a/src/legacy/utils.py b/src/legacy/utils.py index 3568b8b0e..ddcbb6acd 100644 --- a/src/legacy/utils.py +++ b/src/legacy/utils.py @@ -1559,7 +1559,7 @@ async def summarize_webpage(model: BaseChatModel, webpage_content: str) -> str: {"role": "system", "content": SUMMARIZATION_PROMPT.format(webpage_content=webpage_content)}, {"role": "user", "content": user_input_content}, ]) - except: + except Exception: # fall back on the raw content return webpage_content @@ -1632,4 +1632,4 @@ def _load(): return config config = await asyncio.to_thread(_load) - return config \ No newline at end of file + return config