From: Alexander Popov Date: Thu, 31 Mar 2022 16:38:25 +0000 (+0300) Subject: Additional check for TYPES_OF_CHECKS X-Git-Tag: v0.5.17~10 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=e98c458bd568f5aee10654d683e2da034dc2d544;p=kconfig-hardened-check.git Additional check for TYPES_OF_CHECKS --- 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):