May 29, 2024
Not all exceptions are due to coding errors, of course. Network cables get pulled out, disks fail.
But honestly if the code base has plenty of evidence of appropriate exception handling, I don't think a top level, catch all except clause is going to worry anybody.
It is when the entire code base does nothing other than catch generic exceptions and log them. That is a problem.