Skip to content

The agent that grows with you

fix(gateway): catch only OSError around the roster's install id

Teknium360cf1633678
diff --git a/gateway/session_group_controls.py b/gateway/session_group_controls.py
index b89c0574c14..a64f7e3a053 100644
--- a/gateway/session_group_controls.py
+++ b/gateway/session_group_controls.py
@@ -447,6 +447,6 @@ def _profiles(authority, actor, home, params, siblings=()):
from hermes_cli.install_identity import get_install_id
try:
install_id = get_install_id() or ''
- except Exception:
+ except OSError:
install_id = ''
return {'profiles': profiles, 'bot_mode_protocol': True, 'install_id': install_id}