From eecb95abbd8e206daf1d508691b560d6f695fccd Mon Sep 17 00:00:00 2001 From: Carlo Russo Date: Thu, 7 Nov 2024 17:27:35 +0100 Subject: [PATCH] Small fix in compare function print message on identical results --- src/lisfloodutilities/compare/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lisfloodutilities/compare/main.py b/src/lisfloodutilities/compare/main.py index 614c1fa..49dd247 100644 --- a/src/lisfloodutilities/compare/main.py +++ b/src/lisfloodutilities/compare/main.py @@ -68,9 +68,9 @@ def main(cliargs): errors+=errors2 errors+=errors3 - if errors!=None: + if len(errors)!=0: for i, e in enumerate(errors): - logger.error('%d - %s', i, e) + logger.info('%d - %s', i, e) else: logger.info('No differences in Datasets %s and %s', dataset_a, dataset_b)