4 ms·
First thing that jumped at me when I was reading the code. Why would you wrap an import in a try catch unless you want to import something else when the first
by ehsankia 9y ago
First thing that jumped at me when I was reading the code.
Why would you wrap an import in a try catch unless you want to import something else when the first one fails.
And if you don't, you should exit ones the import fails rather than let it continue and hit inevitable failure.
- philipov 9y agoMaybe it was written by programmers trained on compiled languages with no interpreter to automatically catch all exceptions and print a traceback for you, so now they're cargo culting onto "Every exception must get caught to avoid undefined behavior."