diff --git a/.DS_Store b/.DS_Store index a85db9b6..7acbcd53 100644 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/deploy-agent-on-av/example/agent.py b/deploy-agent-on-av/example/agent.py index ceef93a6..2de93229 100644 --- a/deploy-agent-on-av/example/agent.py +++ b/deploy-agent-on-av/example/agent.py @@ -60,7 +60,7 @@ async def handle_message(ctx: Context, sender: str, msg: ChatMessage): max_tokens=2048, ) response = str(r.choices[0].message.content) - except: + except Exception: ctx.logger.exception("Error querying model") await ctx.send(sender, ChatMessage( diff --git a/frontend-integration/.DS_Store b/frontend-integration/.DS_Store index ad6ef8da..b042da4d 100644 Binary files a/frontend-integration/.DS_Store and b/frontend-integration/.DS_Store differ diff --git a/frontend-integration/frontend_app.py b/frontend-integration/frontend_app.py index a909eefa..67e264af 100644 --- a/frontend-integration/frontend_app.py +++ b/frontend-integration/frontend_app.py @@ -118,7 +118,7 @@ def health_check(): health_status[agent_name] = {"status": "healthy", "url": agent_url, "agent_info": health_data} else: health_status[agent_name] = {"status": "unhealthy", "url": agent_url} - except: + except requests.RequestException: health_status[agent_name] = {"status": "offline", "url": agent_url} return jsonify(health_status)