Skip to content

Commit 885c4ae

Browse files
committed
fixed lint issues
1 parent 6f2109d commit 885c4ae

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

trino/client.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -888,7 +888,8 @@ def _stop_heartbeat(self):
888888
self._heartbeat_thread = None
889889

890890
def _heartbeat_loop(self):
891-
while not self._heartbeat_stop_event.is_set() and not self.finished and not self.cancelled and self._heartbeat_enabled:
891+
while all([not self._heartbeat_stop_event.is_set(), not self.finished, not self.cancelled,
892+
self._heartbeat_enabled]):
892893
if self._next_uri is None:
893894
break
894895
try:

0 commit comments

Comments
 (0)