Created
August 30, 2012 19:39
-
-
Save OliverUv/3538896 to your computer and use it in GitHub Desktop.
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
exception_message_on_failure = '' | |
try: | |
exception_message_on_failure = 'Could not access database.' | |
neurons = database.query(Neurons, state='Firing') | |
exception_message_on_failure = 'Failed doing some thing.' | |
some.thing() | |
exception_message_on_failure = 'Could not format data.' | |
output = format(neurons) | |
except e: | |
report_error(exception_message_on_failure) | |
raise e |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment