From 076bf4014b5e744bef5bf6144351b3ce9ee7394b Mon Sep 17 00:00:00 2001 From: John Bodley <4567245+john-bodley@users.noreply.github.com> Date: Wed, 7 Feb 2018 15:56:07 -0800 Subject: [PATCH] [revert] Reverting PR #4062 (#4359) --- superset/views/core.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/superset/views/core.py b/superset/views/core.py index 30ce8562b0ca9..77c14b90cf62e 100755 --- a/superset/views/core.py +++ b/superset/views/core.py @@ -28,7 +28,7 @@ import sqlalchemy as sqla from sqlalchemy import create_engine from sqlalchemy.engine.url import make_url -from sqlalchemy.exc import IntegrityError, OperationalError +from sqlalchemy.exc import IntegrityError from unidecode import unidecode from werkzeug.routing import BaseConverter from werkzeug.utils import secure_filename @@ -655,11 +655,6 @@ class LogModelView(SupersetModelView): @app.route('/health') def health(): - try: - db.session.execute('SELECT 1') - except OperationalError: - return Response('BAD', status=500) - return 'OK'