Skip to content

Commit

Permalink
Remove assertion when there is an error (#164)
Browse files Browse the repository at this point in the history
The new schema for response json contains nextUri and this assertion prevents useful error messages in response['error'] from being propagated when errors happen.
  • Loading branch information
timifasubaa authored and jingw committed Oct 17, 2017
1 parent 6536c13 commit 19d7c2b
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion pyhive/presto.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,6 @@ def _process_response(self, response):
if 'nextUri' not in response_json:
self._state = self._STATE_FINISHED
if 'error' in response_json:
assert not self._nextUri, "Should not have nextUri if failed"
raise DatabaseError(response_json['error'])


Expand Down

0 comments on commit 19d7c2b

Please sign in to comment.