From 6910339f45a01a2840f06815efaa542494165a86 Mon Sep 17 00:00:00 2001 From: Navan Chauhan Date: Fri, 4 Jun 2021 15:31:21 +0530 Subject: simulate 500 --- app/views/error_pages.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'app') diff --git a/app/views/error_pages.py b/app/views/error_pages.py index b0db7f7..108e91e 100644 --- a/app/views/error_pages.py +++ b/app/views/error_pages.py @@ -1,6 +1,10 @@ from app import app from flask import render_template +@app.route("/Simulate500") +def simulate_500(): + return 500 + @app.errorhandler(404) def page_not_found(e): return render_template('message.html',code=404,message="Whoops! Page Not Found"), 404 -- cgit v1.2.3