Skip to content
Permalink
Browse files
tell about exceptions
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Jan 21, 2015
1 parent 63c89ab commit 5184874a6acb52e3a5840f985b92e78a9ae25181
Showing with 2 additions and 2 deletions.
  1. +2 −2 app.py
4 app.py
@@ -179,8 +179,8 @@ def checkgenerator(f):
r.status_code)) # formatception!
else:
yield failed
except:
yield unknown.format('An unhandled exception occurred.')
except Exception as e:
yield unknown.format('An unhandled exception occurred: ' + str(e))

return render_template('checkresult.html', data=checkgenerator(request.form))

0 comments on commit 5184874

Please sign in to comment.