mirror of
https://github.com/misiektoja/instagram_monitor.git
synced 2026-04-25 22:35:49 +03:00
[PR #33] [MERGED] Close_pbar needs to be before any print statements #61
Labels
No labels
Stale
Stale
bug
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/instagram_monitor#61
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/misiektoja/instagram_monitor/pull/33
Author: @tomballgithub
Created: 1/3/2026
Status: ✅ Merged
Merged: 1/4/2026
Merged by: @misiektoja
Base:
dev← Head:fix-pbar3📝 Commits (4)
621cdb3Close_pbar needs to be before any print statements4ed3da3chore: bump version to 2.0.44a783f1chore(release): bump version to 2.0.4 in pyproject.toml6487172docs(release-notes): add changes in v2.0.4📊 Changes
3 files changed (+17 additions, -11 deletions)
View changed files
📝
RELEASE_NOTES.md(+6 -0)📝
instagram_monitor.py(+10 -10)📝
pyproject.toml(+1 -1)📄 Description
I noticed during run-time, not at script startup, that when the pbar is used, it caused something like this. Need to scroll right to see that the "* Followers: reported (187) actual (188). Followings: .,." was on the same line as pbar, and the pbar was shown twice.
With TQDM, there can't be any print statements used or it will mess up the progress bar.
It's why "tqdm.write()" is used when necessary to write something. It preserves the pbar.
The cause was due to the finally statements being used to call close_pbar(), which occurs after other prints/updates.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.