pylance things
This commit is contained in:
@@ -197,13 +197,15 @@ class TerminalWindow(QWidget):
|
||||
|
||||
def _handle_stdout(self) -> None:
|
||||
if self._process:
|
||||
data = self._process.readAllStandardOutput().data().decode("utf-8")
|
||||
raw_bytes = bytes(self._process.readAllStandardOutput().data())
|
||||
data = raw_bytes.decode("utf-8")
|
||||
if data.strip():
|
||||
self.output_area.append(data.strip())
|
||||
|
||||
def _handle_stderr(self) -> None:
|
||||
if self._process:
|
||||
data = self._process.readAllStandardError().data().decode("utf-8")
|
||||
raw_bytes = bytes(self._process.readAllStandardError().data())
|
||||
data = raw_bytes.decode("utf-8")
|
||||
if data.strip():
|
||||
self.output_area.append(f"[Error] {data.strip()}")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user