Spyke

Syndicated from the fediverse. Read and engage on the original instance.

View original on programming.dev

1 reply

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.

1

You reached the end

Mistake with swallowing EnvironmentError errors in Django application | Spyke