[core] Fix issue in Hue with closing impala session on logout
@@ -54,6 +54,7 @@ if sys.version_info[0] > 2:
else:
from urllib import urlencode as urllib_urlencode
+from desktop.lib.exceptions_renderable import PopupException
LOG = logging.getLogger(__name__)
@@ -231,6 +232,9 @@ def dt_logout(request, next_page=None):
session = {"type": session_app, "sourceMethod":" dt_logout"}
try:
get_api(request, session).close_session(session)
+ except PopupException as e:
+ LOG.warn("Error closing Impala session: %s" % e.message.encode('utf-8'))
+ pass
except Exception as e:
LOG.warn("Error closing Impala session: %s" % e)
