Skip to content

Commit

Permalink
Added the view fir the server error
Browse files Browse the repository at this point in the history
  • Loading branch information
ddeveloper72 committed May 2, 2019
1 parent 103a9bc commit 89873b1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions run.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,14 @@ def not_found(e):
"""
return render_template("404.html")


@app.errorhandler(500)
def not_found(e):
"""
Inbuilt function which takes error as parameter
"""
return render_template("500.html")

if __name__ == '__main__':
app.run(host=os.getenv('IP'),
port=os.getenv('PORT'),
Expand Down

0 comments on commit 89873b1

Please sign in to comment.