Handle Unicode decode errors by continuing to process

Used to result in an uncaught exception.
This commit is contained in:
Louis-Kenzo Cahier 2014-01-16 10:46:40 +01:00
commit 6092addb10

View file

@ -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: