Skip to content

Commit 5184874

Browse files
committedJan 21, 2015
tell about exceptions
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
1 parent 63c89ab commit 5184874

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎app.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,8 @@ def checkgenerator(f):
179179
r.status_code)) # formatception!
180180
else:
181181
yield failed
182-
except:
183-
yield unknown.format('An unhandled exception occurred.')
182+
except Exception as e:
183+
yield unknown.format('An unhandled exception occurred: ' + str(e))
184184

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

0 commit comments

Comments
 (0)
Please sign in to comment.