From 8e411bfaefaf931f849521149aa74151e1ccbd0c Mon Sep 17 00:00:00 2001 From: Stefan Klug Date: Tue, 11 Jun 2024 14:56:45 +0200 Subject: libtuning: Only warn if processing returns None There are valid cases where a module returns None. E.g. no images were provided for LSC calibration. We should however define proper semantics there. Continue with a warning for now. Signed-off-by: Stefan Klug Reviewed-by: Laurent Pinchart Reviewed-by: Paul Elder --- utils/tuning/libtuning/libtuning.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'utils/tuning/libtuning/libtuning.py') diff --git a/utils/tuning/libtuning/libtuning.py b/utils/tuning/libtuning/libtuning.py index 5342e5d6..e7c63535 100644 --- a/utils/tuning/libtuning/libtuning.py +++ b/utils/tuning/libtuning/libtuning.py @@ -200,8 +200,8 @@ class Tuner(object): for module in self.modules: out = module.process(self.config, images, self.output) if out is None: - logger.error(f'Module {module.hr_name} failed to process...') - break + logger.warning(f'Module {module.hr_name} failed to process...') + continue self.output[module] = out self.generator.write(args.output, self.output, self.output_order) -- cgit v1.2.1