From a7fd696267b81377ab69b1bcbcc6581fa5fe5a0d Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Sat, 8 Jun 2024 00:03:43 +0200 Subject: webmap-download*: Use +=. --- webmap-download | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'webmap-download') diff --git a/webmap-download b/webmap-download index 4eaac9d..2724951 100755 --- a/webmap-download +++ b/webmap-download @@ -101,7 +101,7 @@ def download(url, dest, dir_fd=None, headers={}, session=requests, progress=None chunk_size = len(chunk) if pbar is not None: pbar.update(chunk_size) - size = size + chunk_size + size += chunk_size if max_size is not None and size > max_size: raise Exception(f'Payload exceeds max-size ({max_size})') fp.write(chunk) -- cgit v1.2.3