fix issue #2 when debug=True and raise a exception
Merge pull request #3 from edersohe/master

fix issue #2 when debug=True and raise a exception