Created
January 8, 2012 15:40
-
-
Save sajal/1578744 to your computer and use it in GitHub Desktop.
Dont give up
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def do_task(): | |
""" | |
Customise this | |
""" | |
this_will_always_fail() | |
def attempt_task(): | |
try: | |
do_task() | |
print "Success at last!" | |
except: | |
attempt_task() | |
if __name__ == "__main__": | |
attempt_task() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment