We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 23e5dc3 commit 760e9bbCopy full SHA for 760e9bb
1 file changed
pyhive/hive.py
@@ -430,7 +430,7 @@ def fetch_logs(self):
430
try: # Older Hive instances require logs to be retrieved using GetLog
431
req = ttypes.TGetLogReq(operationHandle=self._operationHandle)
432
logs = self._connection.client.GetLog(req).log.splitlines()
433
- except ttypes.TApplicationException as e: # Otherwise, retrieve logs using newer method
+ except (ttypes.TApplicationException, AttributeError) as e: # Otherwise, retrieve logs using newer method
434
if e.type != ttypes.TApplicationException.UNKNOWN_METHOD:
435
raise
436
logs = []
0 commit comments