From 18ead66f04b7a26ba11d3fc405a7252c27fef621 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Tue, 27 Oct 2015 07:08:17 +0100 Subject: [PATCH] Fix odd QuteProc crash. --- tests/integration/testprocess.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/integration/testprocess.py b/tests/integration/testprocess.py index 85b75aa9d..f2a34d07d 100644 --- a/tests/integration/testprocess.py +++ b/tests/integration/testprocess.py @@ -95,6 +95,9 @@ class Process(QObject): @pyqtSlot() def read_log(self): """Read the log from the process' stdout.""" + if not hasattr(self, 'proc'): + # I have no idea how this happens, but it does... + return while self.proc.canReadLine(): line = self.proc.readLine() line = bytes(line).decode('utf-8', errors='ignore').rstrip('\r\n')