aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorNavan Chauhan <navanchauhan@gmail.com>2021-06-04 15:31:21 +0530
committerNavan Chauhan <navanchauhan@gmail.com>2021-06-04 15:31:21 +0530
commit6910339f45a01a2840f06815efaa542494165a86 (patch)
treeb5062fb99ae21b7bc5428e6f127ff199c670748a /app
parent111795679e3d87b050f78399c021403827e7afbc (diff)
simulate 500
Diffstat (limited to 'app')
-rw-r--r--app/views/error_pages.py4
1 files changed, 4 insertions, 0 deletions
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