mirror of
https://github.com/misiektoja/spotify_profile_monitor.git
synced 2026-04-25 23:15:57 +03:00
[PR #26] [MERGED] Moved CLEAN_OUTPUT assignment after loading configuration files. Check that it is used only with -l or -x #33
Labels
No labels
Stale
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotify_profile_monitor#33
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/spotify_profile_monitor/pull/26
Author: @tomballgithub
Created: 7/19/2025
Status: ✅ Merged
Merged: 9/7/2025
Merged by: @tomballgithub
Base:
dev← Head:cleanout📝 Commits (3)
76e01fdMoved CLEAN_OUTPUT assignment after loading configuration files. Check that it is used only with -l or -xf845cf7Added comments back6e53151Revert "Added comments back"📊 Changes
1 file changed (+14 additions, -10 deletions)
View changed files
📝
spotify_profile_monitor.py(+14 -10)📄 Description
The CLEAN_OUTPUT feature was intended for -l and -x usage, but the code was not checking for that. Fixed this.
The CLEAN_OUTPUT feature was set from command line before the configuration files are loaded. This means the command line argument was unable to override the setting in the configuration files. I moved the code after the configuration files are loaded. The only impact is that the screen clear and printing version info for the script are performed after the configuration files are loaded. If an error occurs during that processing, those messages and sys.exit will occur before the screen is cleared and version printed. It's not a material difference in operation.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.