From e26c8afcff4347093b024305e0fc55fe2561096e Mon Sep 17 00:00:00 2001 From: Lukas Stockner Date: Mon, 13 Feb 2023 20:14:45 +0100 Subject: [PATCH] Fix crash when an APIResource has no verbs --- kopf/_cogs/clients/scanning.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kopf/_cogs/clients/scanning.py b/kopf/_cogs/clients/scanning.py index 86f7b908..2c8de898 100644 --- a/kopf/_cogs/clients/scanning.py +++ b/kopf/_cogs/clients/scanning.py @@ -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']