superset-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From maximebeauche...@apache.org
Subject [incubator-superset] branch master updated: [bugfix] Presto KeyError 'errorLocation' (#3291)
Date Wed, 16 Aug 2017 20:25:12 GMT
This is an automated email from the ASF dual-hosted git repository.

maximebeauchemin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git


The following commit(s) were added to refs/heads/master by this push:
     new 84e59a1  [bugfix] Presto KeyError 'errorLocation' (#3291)
84e59a1 is described below

commit 84e59a11f160380134b8b14c2388514380e02f47
Author: Maxime Beauchemin <maximebeauchemin@gmail.com>
AuthorDate: Wed Aug 16 13:25:09 2017 -0700

    [bugfix] Presto KeyError 'errorLocation' (#3291)
---
 superset/db_engine_specs.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/superset/db_engine_specs.py b/superset/db_engine_specs.py
index 0b804b3..5f67ec6 100644
--- a/superset/db_engine_specs.py
+++ b/superset/db_engine_specs.py
@@ -497,9 +497,9 @@ class PrestoEngineSpec(BaseEngineSpec):
                 isinstance(e.orig[0], dict)):
             error_dict = e.orig[0]
             return '{} at {}: {}'.format(
-                error_dict['errorName'],
-                error_dict['errorLocation'],
-                error_dict['message']
+                error_dict.get('errorName'),
+                error_dict.get('errorLocation'),
+                error_dict.get('message'),
             )
         return utils.error_msg_from_exception(e)
 

-- 
To stop receiving notification emails like this one, please contact
['"commits@superset.apache.org" <commits@superset.apache.org>'].

Mime
View raw message