Skip to content

Commit

Permalink
[bugfix] Presto KeyError 'errorLocation' (#3291)
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch authored Aug 16, 2017
1 parent 9fcd5d6 commit 84e59a1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions superset/db_engine_specs.py
Original file line number Diff line number Diff line change
Expand Up @@ -497,9 +497,9 @@ def extract_error_message(cls, e):
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)

Expand Down

0 comments on commit 84e59a1

Please sign in to comment.