From e598573c6519b953e0ccfc1f3663f827f8cd7e22 Mon Sep 17 00:00:00 2001 From: Chris Date: Mon, 11 Mar 2019 20:36:23 -0700 Subject: [PATCH] Revert "fallback when decoding errors happen" This reverts commit f189006dd4566941c4ff1eebfdb699fc6872884a. --- gooey/gui/processor.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/gooey/gui/processor.py b/gooey/gui/processor.py index 4d9a60c..c29bba8 100644 --- a/gooey/gui/processor.py +++ b/gooey/gui/processor.py @@ -66,8 +66,7 @@ class ProcessController(object): line = process.stdout.readline() if not line: break - - pub.send_message(events.CONSOLE_UPDATE, msg=line.decode(self.encoding, 'replace')) + pub.send_message(events.CONSOLE_UPDATE, msg=line.decode(self.encoding)) pub.send_message(events.PROGRESS_UPDATE, progress=self._extract_progress(line)) pub.send_message(events.EXECUTION_COMPLETE) @@ -78,7 +77,7 @@ class ProcessController(object): user-supplied regex and calculation instructions ''' # monad-ish dispatch to avoid the if/else soup - find = partial(re.search, string=text.strip().decode(self.encoding, 'replace')) + find = partial(re.search, string=text.strip().decode(self.encoding)) regex = unit(self.progress_regex) match = bind(regex, find) result = bind(match, self._calculate_progress)