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

Yeah, no. I know I'll mistakenly do

  except Exception:
    resource.rollback()
    raise
instead of

  except BaseException:
    resource.rollback()
    raise
and it's going to be really hard to insert a test case which ensures I really handled KeyboardInterrupt and the like.


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

Search: