Skip to content

Commit b656f38

Browse files
committed
flush print on upload
1 parent 366af42 commit b656f38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/kiwixstorage/upload.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def do_upload_file(url: str, fpath: pathlib.Path, key: str = None):
5757

5858
if s3.has_object(key):
5959
raise ValueError(f"Key `{key}` already exists at {dest}. Specify another one.")
60-
print(f"Uploading {fpath.name} ({format_size(fsize)}) to {dest}/{key}")
60+
print(f"Uploading {fpath.name} ({format_size(fsize)}) to {dest}/{key}", flush=True)
6161

6262
progress = CustomProgressBar(fsize).callback if progressbar else True
6363
s3.upload_file(fpath=fpath, key=key, progress=progress)

0 commit comments

Comments
 (0)