fix exception?
This commit is contained in:
parent
7499f26481
commit
0e74283cce
|
@ -59,8 +59,9 @@ if __name__ == '__main__':
|
|||
for row in row_iter:
|
||||
row_i = row
|
||||
col_iter = range(min_col, max_col + 1)
|
||||
col_bar = tqdm(total=len(col_iter), leave=False, disable=True)
|
||||
with ThreadPoolExecutor(args.threads) as executor:
|
||||
col_bar = tqdm(total=len(col_iter), leave=False)
|
||||
col_bar.disable = True
|
||||
with (ThreadPoolExecutor(args.threads) as executor):
|
||||
futures = [executor.submit(download_tile, (row, col, args.base_url, r_headers, tiles_output, args.proxy)) for col in col_iter]
|
||||
for future in as_completed(futures):
|
||||
result = future.result()
|
||||
|
|
Loading…
Reference in New Issue