Skip to content

Commit

Permalink
[bugfix] Presto KeyError 'errorLocation'
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch committed Aug 15, 2017
1 parent 9c6248f commit 942066e
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 942066e

Please sign in to comment.