Skip to content

Commit

Permalink
add a call to .items() in dictionary comprehension
Browse files Browse the repository at this point in the history
  • Loading branch information
bhlieberman committed May 13, 2024
1 parent f86d3d3 commit 331c151
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion biobricks/dvc_fetcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def download_exec(self, urls, paths, max_threads=4):
signal.signal(signal.SIGINT, lambda signum, frame: signal_handler(signum, frame, self.interrupt_event))
with ThreadPoolExecutor(max_threads) as exec:
exec_args = dict(zip(urls, paths))
futures = {exec.submit(self.exec_task, url, path) for url, path in exec_args}
futures = {exec.submit(self.exec_task, url, path) for url, path in exec_args.items()}
for future in as_completed(futures):
try:
data = future.result()
Expand Down

0 comments on commit 331c151

Please sign in to comment.