diff --git a/sen2chain/library.py b/sen2chain/library.py index c7fca106768d00159ce6bdf00a93f48b7e8d9547..075a967e5415016a9e8dc4c2034dbff1e90d773b 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}