From d529653714c33c029eefeb330251905c0b3fdcef Mon Sep 17 00:00:00 2001 From: burzuf Date: Sun, 22 Mar 2020 17:29:58 +0300 Subject: [PATCH] =?UTF-8?q?=D0=92=D0=B5=D1=80=D0=BD=D1=83=D0=BB=20=D0=B7?= =?UTF-8?q?=D0=B0=D0=B3=D0=BB=D1=83=D1=88=D0=BA=D1=83=20=D0=BE=D1=88=D0=B8?= =?UTF-8?q?=D0=B1=D0=BE=D0=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- __init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/__init__.py b/__init__.py index 590ac11..1a1298d 100644 --- a/__init__.py +++ b/__init__.py @@ -98,9 +98,9 @@ def workshop(): user_scripts_list=user_scripts_list, tg_id=tg_id) -# @app.errorhandler(Exception) -# def universal_error(error): -# return render_template('error.html'), 404 +@app.errorhandler(Exception) +def universal_error(error): + return render_template('error.html'), 404 def string_check(string):