Skip to content

Commit 2aa1794

Browse files
📜🤖 Added by blurb_it.
1 parent 3202e46 commit 2aa1794

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Updated ``can_colorize`` logic in ``_colorize.py`` to catch all exceptions when checking if a file is a TTY, returning ``False`` if any exception occurs. This prevents crashes in edge cases, such as when a file is closed.

0 commit comments

Comments
 (0)