We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e26178 commit 832d90dCopy full SHA for 832d90d
api/contacts/google_issuer.py
@@ -15,8 +15,9 @@ def __init__(self, api_client: Client):
15
16
@staticmethod
17
def connections_ids(response):
18
- LOG.debug(f'Connections {response["connections"]}')
19
- sources = list(map(lambda c: c["metadata"]["sources"], response["connections"]))
+ connections = response.get("connections", [])
+ LOG.debug(f'Connections {connections}')
20
+ sources = list(map(lambda c: c["metadata"]["sources"], connections))
21
elements = [item for sublist in sources for item in sublist]
22
profiles = list(filter(lambda s: s["type"] == "PROFILE", elements))
23
return list(map(lambda profile: profile["id"], profiles))
0 commit comments