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

except Exception: is useful when you have two alternate ways of accomplishing a goal; one default that might fail, and one extra that is less complete. Although you might only expect a certain error, since you have an alternate, you might as well use it for all errors.


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

Search: