Merge pull request #2326 from dnephin/unicode_decode_error
Unicode decode error
This commit is contained in:
commit
b09cf86dd6
3 changed files with 18 additions and 2 deletions
|
|
@ -95,7 +95,7 @@ def stream_as_text(stream):
|
|||
"""
|
||||
for data in stream:
|
||||
if not isinstance(data, six.text_type):
|
||||
data = data.decode('utf-8')
|
||||
data = data.decode('utf-8', 'replace')
|
||||
yield data
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue