Skip to content

Commit

Permalink
Fix crash when an APIResource has no verbs
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasstockner authored Feb 13, 2023
1 parent 7072788 commit e26c8af
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 e26c8af

Please sign in to comment.