Skip to content

Commit c52dd87

Browse files
committed
BUG: #680 fix TypeError failure on sys.stdin.encoding access
1 parent 41e6083 commit c52dd87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/common.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -821,5 +821,5 @@ def console_encode(value):
821821
try:
822822
import sys
823823
return value.encode(sys.stdin.encoding, 'replace')
824-
except AttributeError:
824+
except (AttributeError, TypeError):
825825
return value.encode('ascii', 'replace')

0 commit comments

Comments
 (0)