From 0e74283cce650ea6c250b3bedcf098fde06b1917 Mon Sep 17 00:00:00 2001 From: Cyberes Date: Sun, 5 Nov 2023 20:46:50 -0700 Subject: [PATCH] fix exception? --- exfiltrate.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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()