[revert] Reverting PR #4062 (#4359)

This commit is contained in:
John Bodley 2018-02-07 15:56:07 -08:00 committed by Maxime Beauchemin
parent 2e172d77cf
commit 6f1150fef4
1 changed files with 1 additions and 6 deletions

View File

@ -28,7 +28,7 @@ from six import text_type
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 @@ appbuilder.add_view(
@app.route('/health')
def health():
try:
db.session.execute('SELECT 1')
except OperationalError:
return Response('BAD', status=500)
return 'OK'