Skip to content

Commit 760e9bb

Browse files
committed
1 parent 23e5dc3 commit 760e9bb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pyhive/hive.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ def fetch_logs(self):
430430
try: # Older Hive instances require logs to be retrieved using GetLog
431431
req = ttypes.TGetLogReq(operationHandle=self._operationHandle)
432432
logs = self._connection.client.GetLog(req).log.splitlines()
433-
except ttypes.TApplicationException as e: # Otherwise, retrieve logs using newer method
433+
except (ttypes.TApplicationException, AttributeError) as e: # Otherwise, retrieve logs using newer method
434434
if e.type != ttypes.TApplicationException.UNKNOWN_METHOD:
435435
raise
436436
logs = []

0 commit comments

Comments
 (0)