From 7f40dfbf337adbfaeef078013002ac71c81433b9 Mon Sep 17 00:00:00 2001 From: buua436 Date: Mon, 15 Dec 2025 13:36:21 +0800 Subject: [PATCH] update --- api/apps/sdk/agents.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/apps/sdk/agents.py b/api/apps/sdk/agents.py index fc589a6df..5bb487c5d 100644 --- a/api/apps/sdk/agents.py +++ b/api/apps/sdk/agents.py @@ -527,7 +527,7 @@ async def webhook(agent_id: str): # float try: return float(v) - except: + except Exception: raise Exception(f"Cannot convert '{value}' to number") # Object @@ -538,7 +538,7 @@ async def webhook(agent_id: str): return parsed else: raise Exception("JSON is not an object") - except: + except Exception: raise Exception(f"Cannot convert '{value}' to object") # Array @@ -549,7 +549,7 @@ async def webhook(agent_id: str): return parsed else: raise Exception("JSON is not an array") - except: + except Exception: raise Exception(f"Cannot convert '{value}' to array") # String (accept original)