Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The problem is that the catch block will catch all errors, so if a different type of error to the one you expected occurs then it gets silently swallowed. This is the equivalent of catching the generic Exception class in python. Horrendous terrible practice in anything but the hackiest scripts.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: