summaryrefslogtreecommitdiff
path: root/grc/gui/Executor.py
diff options
context:
space:
mode:
Diffstat (limited to 'grc/gui/Executor.py')
-rw-r--r--grc/gui/Executor.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/grc/gui/Executor.py b/grc/gui/Executor.py
index 480917f3f1..d0137f96d8 100644
--- a/grc/gui/Executor.py
+++ b/grc/gui/Executor.py
@@ -83,7 +83,10 @@ class ExecFlowGraphThread(threading.Thread):
r = "\n"
while r:
GLib.idle_add(Messages.send_verbose_exec, r)
- r = self.process.stdout.read(1024).decode('utf-8','ignore')
+ r = self.process.stdout.read(1024)
+ if not isinstance(r, str):
+ r = r.decode('utf-8','ignore')
+
self.process.poll()
GLib.idle_add(self.done)