Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion rich/console.py
Original file line number Diff line number Diff line change
Expand Up @@ -844,7 +844,8 @@ def set_live(self, live: "Live") -> bool:
def clear_live(self) -> None:
"""Clear the Live instance. Used by the Live context manager (no need to call directly)."""
with self._lock:
self._live_stack.pop()
if self._live_stack:
self._live_stack.pop()

def push_render_hook(self, hook: RenderHook) -> None:
"""Add a new render hook to the stack.
Expand Down