From 152fe003c586814cd57d815e35a814fe9d5205f4 Mon Sep 17 00:00:00 2001 From: haosenwang1018 Date: Tue, 24 Feb 2026 22:02:08 +0000 Subject: [PATCH] fix: replace bare except with Exception in webshop env Two bare except clauses in goal text retrieval fallback. --- envs/webshop/env.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/envs/webshop/env.py b/envs/webshop/env.py index 92b2922..3f4b07c 100644 --- a/envs/webshop/env.py +++ b/envs/webshop/env.py @@ -348,7 +348,7 @@ async def _run(self, action: str): # Add to trajectory in human agent style try: goal = self.webshop_env.get_instruction_text() - except: + except Exception: goal = "Episode completed" trajectory_entry = { @@ -376,7 +376,7 @@ async def _run(self, action: str): # Add error to trajectory try: goal = self.webshop_env.get_instruction_text() - except: + except Exception: goal = "Error occurred" trajectory_entry = {