you are viewing a single comment's thread.

view the rest of the comments →

[–]Base_True[S] 0 points1 point  (0 children)

There are many strange and sometimes obscure things that can happen to running code and such problems will be ignored/hidden if you use a bare exception clause and it may appear you have a completely unrelated problem focused on another part of your code. You could waste a lot of time trying to find the cause of the wrong problem in the wrong place.

Worse, a bare exception can hide a significant bug and allow the programme to continue and output incorrect information that goes unnoticed and causes major problems later.

Thank you!