4
Mistake with swallowing EnvironmentError errors in Django application
(utcc.utoronto.ca)
Welcome to the Python community on the programming.dev Lemmy instance!
Past
November 2023
October 2023
July 2023
August 2023
September 2023
How old is this article? There hasn't been EnvironmentError since py33
Had to look it up.
Your point still stands, ignoring Exceptions bad. The next thing would wanna see are the unit tests. If those are nonexistent then of course the code is gonna be buggy. The hint is that you called the CLI a script. So not a package.
So it's a good thing you have revisited the code and hopefully rewritten it as a package with a test suite.