diff --git a/exfiltrate.py b/exfiltrate.py index 5b4e713..584c36f 100644 --- a/exfiltrate.py +++ b/exfiltrate.py @@ -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()