Skip to content

Commit 03f7899

Browse files
committed
Handle no orgs when GraphQL returns None
1 parent aead4a0 commit 03f7899

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/openhound_github/resources/enterprise.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def enterprise(ctx: SourceContext):
6969
name="enterprise_organizations", columns=EnterpriseOrganization, parallelized=True
7070
)
7171
def enterprise_organizations(enterprise_data: Enterprise, ctx: SourceContext):
72-
orgs = enterprise_data.organizations.get("nodes", [])
72+
orgs = (enterprise_data.organizations or {}).get("nodes", [])
7373
for org in orgs:
7474
yield {
7575
**org,

0 commit comments

Comments
 (0)