Merge pull request #56 from Louis-Kenzo/wip/unicode
Handle Unicode decode errors by continuing to process
This commit is contained in:
commit
c8926ee770
1 changed files with 2 additions and 0 deletions
|
|
@ -567,6 +567,8 @@ def map_write( stream_in, stream_out, function, *args ):
|
||||||
while True:
|
while True:
|
||||||
try:
|
try:
|
||||||
item = stream_in.readline()
|
item = stream_in.readline()
|
||||||
|
except UnicodeDecodeError:
|
||||||
|
continue
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
break
|
break
|
||||||
if not item:
|
if not item:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue