Skip to content
This repository was archived by the owner on Aug 25, 2024. It is now read-only.

Commit 28cca07

Browse files
committed
base: Add check if dict before checking for existance of keys within is_config_dict()
Signed-off-by: John Andersen <[email protected]>
1 parent ed5c1e2 commit 28cca07

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

dffml/base.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,8 @@ def convert_value(arg, value):
212212

213213
def is_config_dict(value):
214214
return bool(
215-
"plugin" in value
215+
isinstance(value, dict)
216+
and "plugin" in value
216217
and "config" in value
217218
and isinstance(value["config"], dict)
218219
)

0 commit comments

Comments
 (0)