You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@superset.apache.org by GitBox <gi...@apache.org> on 2018/02/07 23:56:11 UTC
[GitHub] mistercrunch closed pull request #4359: [revert] Reverting PR #4062
mistercrunch closed pull request #4359: [revert] Reverting PR #4062
URL: https://github.com/apache/incubator-superset/pull/4359
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git a/superset/views/core.py b/superset/views/core.py
index 44b6b2a5a4..9aaee09ba1 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'
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services