ThioJoe / YT-Spammer-Purge

Allows you easily scan for and delete scam comments using several methods.
GNU General Public License v3.0
4.52k stars 391 forks source link

Redirect all error messages printed by python files to stderr. #1028

Closed avighnac closed 1 year ago

avighnac commented 1 year ago

Redirects errors to stderr

Related Issue/Addition to code

Type of change

Proposed Changes

Why is this change needed?

This change is needed to maintain the overall code quality of this project. Printing error messages to `sys.stderr` is a practice that should be adhered to by all code. See [this](https://stackoverflow.com/questions/3385201/confused-about-stdin-stdout-and-stderr) for more information about what `sys.stderr` (or just `stderr`) is. ### Checklist: - [x] My code follows the style guidelines of this project and I have read [CONTRIBUTING.md](/CONTRIBUTING.md) - [x] I have performed a self-review of my own code - [x] I have commented my code, particularly in hard-to-understand areas - [x] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [x] I have checked my code and corrected any misspellings