Skip to content

Commit

Permalink
closing the helper bar should happen lower down
Browse files Browse the repository at this point in the history
  • Loading branch information
jspaaks committed Mar 11, 2021
1 parent 3ecf07a commit e56710c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fairtally/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ def cli(urls, input_file, output_format, output_filename):
url_progressbar = tqdm(all_urls, bar_format="fairtally progress: |{bar}| {n_fmt}/{total_fmt}", ncols=70, position=0)
current_value = tqdm(total=0, bar_format="{desc}", position=1)
results = [check_url(url, current_value) for url in url_progressbar]
current_value.close()

if output_filename == DEFAULT_OUTPUT_FILENAME and output_format == "json":
output_filename = "tally.json"
Expand All @@ -51,3 +50,4 @@ def cli(urls, input_file, output_format, output_filename):

msg = f"Completed fairtally on {len(all_urls)} URLs and written report to {output_filename}"
current_value.set_description_str(msg)
current_value.close()

0 comments on commit e56710c

Please sign in to comment.