Skip to content

Commit

Permalink
Merge pull request #1000 from genesiscloud/fix-apiresource-no-verbs
Browse files Browse the repository at this point in the history
Fix crash when an APIResource has no verbs
  • Loading branch information
nolar authored Jul 27, 2023
2 parents c266479 + e42d475 commit 08205e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kopf/_cogs/clients/scanning.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ async def _read_version(
),
namespaced=resource['namespaced'],
preferred=preferred,
verbs=frozenset(resource.get('verbs', [])),
verbs=frozenset(resource.get('verbs') or []),
)
for resource in rsp.get('resources', [])
if '/' not in resource['name']
Expand Down

0 comments on commit 08205e4

Please sign in to comment.