Skip to content
This repository has been archived by the owner on May 8, 2020. It is now read-only.

Commit

Permalink
Correctly close tqdm after downlaod
Browse files Browse the repository at this point in the history
  • Loading branch information
miyakogi committed Sep 11, 2018
1 parent f0db94d commit 95dad5f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pyppeteer/chromium_downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ def download_zip(url: str) -> BytesIO:
for chunk in data.stream(10240):
_data.write(chunk)
process_bar.update(len(chunk))
process_bar.close()

logger.warning('\nchromium download done.')
return _data
Expand Down

0 comments on commit 95dad5f

Please sign in to comment.