The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix: drop no-op suppress around named-home expanduser in _guard_homes
teknium1e342248e1ad8
diff --git a/agent/file_safety.py b/agent/file_safety.pyindex 51851859e05..ade97fa275e 100644--- a/agent/file_safety.py+++ b/agent/file_safety.py@@ -88,10 +88,9 @@ def _guard_homes(path: str = "") -> set[str]:raw = str(path)if len(raw) > 1 and raw.startswith("~") and raw[1] not in "/\\":name = raw[1:].split("/", 1)[0].split("\\", 1)[0]- with suppress(Exception):- expanded = os.path.expanduser(f"~{name}")- if not expanded.startswith("~"):- homes.add(expanded)+ expanded = os.path.expanduser(f"~{name}")+ if not expanded.startswith("~"):+ homes.add(expanded)return {os.path.realpath(h) for h in homes}