Skip to content

Commit

Permalink
Error handling in this case.
Browse files Browse the repository at this point in the history
  • Loading branch information
johnmcdonnell committed Mar 19, 2012
1 parent aa20aab commit 7f3b949
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
ALREADY_DID_EXP_HIT = 1010
TRIED_TO_QUIT= 1011
INTERMEDIATE_SAVE = 1012
IMPROPER_INPUTS = 1013
PAGE_NOT_FOUND = 404

IN_DEBUG = 2005
Expand Down Expand Up @@ -480,6 +481,8 @@ def savedata():
session.commit()

return render_template('debriefing.html', subjid=subjid)
else:
return render_template('error.html', errornum=IMPROPER_INPUTS)

@app.route('/complete', methods=['POST'])
def completed():
Expand Down

0 comments on commit 7f3b949

Please sign in to comment.