Created
March 14, 2016 07:05
-
-
Save ambv/5925849ac299cd15386d to your computer and use it in GitHub Desktop.
This file contains hidden or 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 func(): | |
try: | |
raise ValueError('ve') | |
except Exception as e: | |
handle_exception(e) | |
def handle_exception(e): | |
if 'some terrible thing' in e.args[0]: | |
raise |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment