Skip to content

Commit 2f4f394

Browse files
committed
Trying to fix build error
1 parent 760e9bb commit 2f4f394

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyhive/hive.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ def fetch_logs(self):
431431
req = ttypes.TGetLogReq(operationHandle=self._operationHandle)
432432
logs = self._connection.client.GetLog(req).log.splitlines()
433433
except (ttypes.TApplicationException, AttributeError) as e: # Otherwise, retrieve logs using newer method
434-
if e.type != ttypes.TApplicationException.UNKNOWN_METHOD:
434+
if hasattr(e, 'type') and e.type != ttypes.TApplicationException.UNKNOWN_METHOD:
435435
raise
436436
logs = []
437437
while True:

0 commit comments

Comments
 (0)