Skip to content

Commit 2322282

Browse files
jlsnetoCopilot
andauthored
Update cereja/display/_display.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent dbe8304 commit 2322282

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cereja/display/_display.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,8 @@ def cleanup(self):
304304
self._stdout_buffer.close()
305305
self._stderr_buffer.close()
306306
except (AttributeError, ValueError):
307+
# Ignore errors when closing buffers: cleanup is best-effort and
308+
# buffers may already be closed or partially initialized.
307309
pass
308310

309311
# Limpa outras referências

0 commit comments

Comments
 (0)