Handle Unicode decode errors by continuing to process
Used to result in an uncaught exception.
This commit is contained in:
parent
f30838cc57
commit
6092addb10
1 changed files with 2 additions and 0 deletions
|
|
@ -567,6 +567,8 @@ def map_write( stream_in, stream_out, function, *args ):
|
|||
while True:
|
||||
try:
|
||||
item = stream_in.readline()
|
||||
except UnicodeDecodeError:
|
||||
continue
|
||||
except KeyboardInterrupt:
|
||||
break
|
||||
if not item:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue