Skip to content

Commit

Permalink
🐛 Bugfix
Browse files Browse the repository at this point in the history
Fix tqdm progress bars
  • Loading branch information
João PV Correia committed Jan 19, 2022
1 parent 392cc94 commit 66cf3cd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions GithubAPIBot.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@ def run(self, action):
dynamic_ncols=True,
smoothing=True,
bar_format="[PROGRESS] {n_fmt}/{total_fmt} |{l_bar}{bar}|",
position=0,
leave=False,
)
for user in users:
Expand Down Expand Up @@ -244,6 +245,8 @@ def run(self, action):
dynamic_ncols=True,
smoothing=True,
bar_format="[SLEEPING] {n_fmt}s/{total_fmt}s |{l_bar}{bar}|",
position=1,
leave=False,
)
for second in sleepSecondsBar:
time.sleep(1)
Expand Down
2 changes: 1 addition & 1 deletion bot_follow.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
raise SystemExit(e)

if res.status_code == 404:
raise ValueError("\nGiven country is not valid. Check README for the valid countries.\n")
raise ValueError(f"\n\"{args.popular}\" is not a valid country. Check README for the valid countries.\n")

popularUsers = res.json()

Expand Down

0 comments on commit 66cf3cd

Please sign in to comment.