We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c4a363 commit 9d8c3f7Copy full SHA for 9d8c3f7
scripts/change_storage_tier.py
@@ -349,7 +349,7 @@ def process_stac_item(
349
# Log progress every 100 objects or at the end
350
if objects_changed % 100 == 0 or objects_changed == len(objects_to_change):
351
logger.info(
352
- f" Progress: {stats['processed']}/{total_objects} objects ({stats['processed']*100//total_objects}%)"
+ f" Progress: {stats['processed']}/{total_objects} objects ({stats['processed']*100//max(total_objects, 1)}%)"
353
)
354
355
# Summary
0 commit comments