From d49d97745c6c384a447ef5be5980e99686426f7d Mon Sep 17 00:00:00 2001 From: Athanasios Voutsadakis Date: Fri, 9 Mar 2018 12:28:55 +0000 Subject: [PATCH] Don't serve 500s on demand --- app/main/views/index.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/main/views/index.py b/app/main/views/index.py index f37532273..56bdfe03f 100644 --- a/app/main/views/index.py +++ b/app/main/views/index.py @@ -20,6 +20,8 @@ def index(): @main.route('/error/') def error(status_code): + if status_code >= 500: + abort(404) abort(status_code)