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