diff --git a/sat_frontends/jp/base.py b/sat_frontends/jp/base.py index 958a76f7..7213bb76 100644 --- a/sat_frontends/jp/base.py +++ b/sat_frontends/jp/base.py @@ -801,7 +801,17 @@ class LiberviaCli: names2jid = {} nodes2jid = {} - for contact in await self.bridge.getContacts(self.profile): + try: + contacts = await self.bridge.getContacts(self.profile) + except BridgeException as e: + if e.classname == "AttributeError": + # we may get an AttributeError if we use a component profile + # as components don't have roster + contacts = [] + else: + raise e + + for contact in contacts: jid_s, attr, groups = contact _jid = JID(jid_s) try: