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

I'm using this too, but I always found it very unreadable for people unfamiliar with it. It's so surprising that it catches the exception for you! I end up always adding a commend

``` logger.exception("Failed to connect.") # Will print exception. ```



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

Search: