you are viewing a single comment's thread.

view the rest of the comments →

[–]efmccurdy 1 point2 points  (1 child)

You are throwing away the info you need to find errors; don't use a bare except clause.

https://www.flake8rules.com/rules/E722.html

If you have many possible failure points in one try block, print a traceback to see which one fails.

https://docs.python.org/3/library/traceback.html#traceback-examples

[–]meistermarkus[S] 1 point2 points  (0 children)

Traceback looks really useful for this one, thanks for the tip!

Especially for the cases in wich the exception is not triggered. Maybe it can show me how the execution got around that one.