From 5ac0b79af4254746c320a9b4046194330befc970 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Mon, 22 Jul 2024 09:44:24 +0200 Subject: utils: igtnore-param: handle empty list. derp. --- lib/utils.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib') diff --git a/lib/utils.py b/lib/utils.py index 1c639ca..4850a53 100644 --- a/lib/utils.py +++ b/lib/utils.py @@ -345,6 +345,10 @@ def observations_enum_to_bool(observations: list, kconfig=False): def ignore_param(by_name: dict, parameter_names: list, ignored_parameters: list): ignored_indexes = list() unpoppable_params = list() + + if ignored_parameters is None: + return + for param_name in sorted(ignored_parameters): try: ignored_indexes.append(parameter_names.index(param_name)) -- cgit v1.2.3