Additional check for TYPES_OF_CHECKS
authorAlexander Popov <alex.popov@linux.com>
Thu, 31 Mar 2022 16:38:25 +0000 (19:38 +0300)
committerAlexander Popov <alex.popov@linux.com>
Wed, 20 Apr 2022 15:31:02 +0000 (18:31 +0300)
kconfig_hardened_check/__init__.py

index 79a93dcad4eded434798440313924bbc845bebe9..04121d412f7093cbe9c2d27f9d10c6317b193ad4 100644 (file)
@@ -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):