I have this try block in my code:
try
try: do_something_that_might_raise_an_exception() except ValueError as err: errmsg = \'My custom error
try: try: int('a') except ValueError as e: raise ValueError('There is a problem: {0}'.format(e)) except ValueError as err: print err
prints:
There is a problem: invalid literal for int() with base 10: 'a'