diff --git a/l2json/sources/minio.py b/l2json/sources/minio.py index eb952159460a002b4f1ec7f0c5c09092578058b4..424b56daf2553aeb14095c875706ee30d8f7919d 100644 --- a/l2json/sources/minio.py +++ b/l2json/sources/minio.py @@ -90,9 +90,10 @@ def fetch_minio_entries( reference=objname if store_filename else "", ) parsed_files += 1 - objects.set_description( - f"{tqdm_desc} ({parsed_files} file(s) kept, {(1 - (tend + dt - t).total_seconds() / (tend - tstart + 2 * dt).total_seconds()) * 100:.1f}% through the observing window)" - ) + if tqdm_desc: + objects.set_description( + f"{tqdm_desc} ({parsed_files} file(s) kept, {(1 - (tend + dt - t).total_seconds() / (tend - tstart + 2 * dt).total_seconds()) * 100:.1f}% through the observing window)" + ) working_day += timedelta(days=1) return data