Skip to content

Commit 6c2987d

Browse files
author
Jay Offerdahl
committed
BUG: Except IOErrors when attempting to retrieve default client encoding.
instead of a more specific AttributeError to include the thrown IOError.
1 parent 9e982e1 commit 6c2987d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/io/formats/console.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def detect_console_encoding():
2121
encoding = None
2222
try:
2323
encoding = sys.stdout.encoding or sys.stdin.encoding
24-
except AttributeError:
24+
except Exception:
2525
pass
2626

2727
# try again for something better

0 commit comments

Comments
 (0)