aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xwebmap-download2
-rw-r--r--webmap-download-mrr.py4
2 files changed, 3 insertions, 3 deletions
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)
diff --git a/webmap-download-mrr.py b/webmap-download-mrr.py
index 2c9d3b0..cfa1432 100644
--- a/webmap-download-mrr.py
+++ b/webmap-download-mrr.py
@@ -86,7 +86,7 @@ class WMS:
logging.error('Timeout')
continue
raise e
- self.req_count = self.req_count + 1
+ self.req_count += 1
if i < max_tries and r.status_code in [requests.codes.bad_gateway, requests.codes.gateway_timeout]:
logging.error(r.status_code)
sleep(30)
@@ -159,7 +159,7 @@ class WMS:
for feature2 in features2:
fpr2, feature2 = mkFeature(feature2, layername)
features[fpr2] = feature2
- i = i + 1
+ i += 1
if fpr not in features:
return None, features
return i, features