Skip to content

Commit

Permalink
Fix crash when an APIResource has no verbs
Browse files Browse the repository at this point in the history
Signed-off-by: Lukas Stockner <lstockner@genesiscloud.com>
  • Loading branch information
lukasstockner committed Jul 26, 2023
1 parent c266479 commit e0254a7
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 e0254a7

Please sign in to comment.