Skip to content

Commit daaacf9

Browse files
committed
add isinstance check
1 parent 2f24cb7 commit daaacf9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lightning/pytorch/callbacks/progress/rich_progress.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def stop(self) -> None:
109109
refresh_thread.join()
110110

111111
def soft_refresh(self) -> None:
112-
if self.live.auto_refresh:
112+
if self.live.auto_refresh and isinstance(self.live._refresh_thread, _RefreshThread):
113113
self.live._refresh_thread.refresh_cond = True
114114

115115
def add_task(

0 commit comments

Comments
 (0)