We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 41e6083 commit c52dd87Copy full SHA for c52dd87
pandas/core/common.py
@@ -821,5 +821,5 @@ def console_encode(value):
821
try:
822
import sys
823
return value.encode(sys.stdin.encoding, 'replace')
824
- except AttributeError:
+ except (AttributeError, TypeError):
825
return value.encode('ascii', 'replace')
0 commit comments