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

From reading the title, I assumed they wanted to make me handle all Errortypes explicitly. However, they just want to replace this:

  try:
    risky_operation()
  except:
    handle_any_error()
with this:

  try:
    risky_operation()
  except Exception as e:
    handle_expected_error(e)

and this will also be legal:

  try:
    risky_operation()
  except Exception as e:
    pass
... seems fine to me, but its off the table anyway.


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

Search: