From e98c458bd568f5aee10654d683e2da034dc2d544 Mon Sep 17 00:00:00 2001 From: Alexander Popov Date: Thu, 31 Mar 2022 19:38:25 +0300 Subject: [PATCH] Additional check for TYPES_OF_CHECKS --- kconfig_hardened_check/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kconfig_hardened_check/__init__.py b/kconfig_hardened_check/__init__.py index 79a93dc..04121d4 100644 --- a/kconfig_hardened_check/__init__.py +++ b/kconfig_hardened_check/__init__.py @@ -715,6 +715,8 @@ def populate_simple_opt_with_data(opt, data, data_type): opt.state = data.get(opt.name, None) elif data_type == 'version': opt.ver = data + else: + sys.exit('[!] ERROR: unexpected data type "{}"'.format(data_type)) def populate_opt_with_data(opt, data, data_type): -- 2.31.1