Skip to content

Commit 8c7c503

Browse files
committed
improve improve error handling
1 parent 26c2e7c commit 8c7c503

File tree

1 file changed

+2
-2
lines changed
  • packages/agent-os/src/agent_os/policies

1 file changed

+2
-2
lines changed

packages/agent-os/src/agent_os/policies/cli.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ def _import_rich_text() ->Any:
5555
from rich.text import Text
5656

5757
return Text
58-
except Exception:
59-
print("WARNING: rich library not installed, using plain text output", file=sys.stderr)
58+
except ImportError as e:
59+
print(f"WARNING: {e}", file=sys.stderr)
6060
return None
6161

6262
def _load_file(path: Path) -> dict[str, Any]:

0 commit comments

Comments
 (0)