Skip to main content

Timeline for answer to Correct way of handling exceptions in Python? by Ryan Christensen

Current License: CC BY-SA 2.5

Post Revisions

2 events
when toggle format what by license comment
Jun 12, 2009 at 1:24 comment added Tom in both server_login and send_mail you can avoid the local variable, because finally will always execute, even if you use a "return" in a try or except block :) you can simply return True in the try block, and False in the except block instead of saving the state in a local var.
Jun 12, 2009 at 1:16 history answered Ryan Christensen CC BY-SA 2.5