From 72c42ef1e680554a2a66ba5a8e77749cda64ff4c Mon Sep 17 00:00:00 2001 From: Impact <pascal.mouquet@ird.fr> Date: Mon, 30 Aug 2021 10:10:42 +0400 Subject: [PATCH] removed < sign in tile.clean_lib to prevent interpretation as html tag --- sen2chain/library.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sen2chain/library.py b/sen2chain/library.py index c7fca10..075a967 100644 --- a/sen2chain/library.py +++ b/sen2chain/library.py @@ -81,8 +81,9 @@ class Library: counts = til.clean_lib(remove=remove, remove_indice_tif=remove_indice_tif) nb_id += counts["identified_problems"] nb_rm += counts["removed_problems"] - prob_id.append(counts["problems"]) - logger.info("{} - {}".format(til, counts)) + if counts["problems"]: + prob_id.append(counts["problems"]) + logger.info("{} - identified problems:{} - removed problems:{}".format(til, counts["identified_problems"], counts["removed_problems"])) except: pass return {"identified_problems": nb_id, "removed_problems": nb_rm, "problems": prob_id} -- GitLab