Skip to content

Commit

Permalink
removed the comment on the error handle
Browse files Browse the repository at this point in the history
  • Loading branch information
Kbassem10 committed Oct 25, 2024
1 parent cda816d commit dca11a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -409,14 +409,14 @@ def request_amount_exceed(error):
@app.errorhandler(405)
def page_not_found(error):
return render_template('error_handle.html', error_code = "405", error_description = "Method Not Allowed."), 405
'''

@app.errorhandler(Exception)
def server_error(error):
return render_template('error_handle.html', error_code = "500", error_description = "Something went wrong."), 500

@app.errorhandler(500)
def internal_server_error(error):
return render_template('error_handle.html', error_code = "500", error_description="Something Went Wrong."), 500'''
return render_template('error_handle.html', error_code = "500", error_description="Something Went Wrong."), 500

@app.route("/", methods=["GET"])
def index():
Expand Down

0 comments on commit dca11a5

Please sign in to comment.