Hacker News new | ask | show | jobs
by tesdinger 1092 days ago
Try except isn't silly it shortens the code a lot. An exception can simply break out of a function, checking for error requires an explicit check at every line of the function and an added return statement to get out of the function.