Skip to content

Commit

Permalink
[revert] Reverting PR apache#4062 (apache#4359)
Browse files Browse the repository at this point in the history
  • Loading branch information
john-bodley authored and Grace Guo committed Feb 8, 2018
1 parent 15bde8f commit 076bf40
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions superset/views/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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'


Expand Down

0 comments on commit 076bf40

Please sign in to comment.