move bar.done out of the loop because obviously

This commit is contained in:
Paul Kehrer 2015-11-08 10:55:34 +09:00
parent 8f1a2d564a
commit ff0d3754fa

View file

@ -82,8 +82,8 @@ def download_artifacts(session):
for data in response.iter_content(chunk_size=8192):
content.write(data)
bar.show(content.tell())
if bar.expected_size == content.tell():
bar.done()
assert bar.expected_size == content.tell()
bar.done()
out_path = os.path.join(
os.path.dirname(__file__),
"dist",