From 6092addb10828b0f978bc3a495f78a3e77cd4b96 Mon Sep 17 00:00:00 2001 From: Louis-Kenzo Cahier Date: Thu, 16 Jan 2014 10:46:40 +0100 Subject: [PATCH] Handle Unicode decode errors by continuing to process Used to result in an uncaught exception. --- colout/colout.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/colout/colout.py b/colout/colout.py index fdc523d..6548caa 100755 --- a/colout/colout.py +++ b/colout/colout.py @@ -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: