You could reraise the exception as the first line of your except block, which would behave just as it would without the try/except.
try:
print 'foo'
# A lot more code...
print 'bar'
except:
raise # was: pass
You could reraise the exception as the first line of your except block, which would behave just as it would without the try/except.
try:
print 'foo'
# A lot more code...
print 'bar'
except:
raise # was: pass