From 86ddc4e9de1b957df7839be17c80643131dbd9ff Mon Sep 17 00:00:00 2001 From: Pranav P Date: Wed, 24 May 2023 17:34:49 +0530 Subject: Removed an unnecessary errorFlag --- src/ngspiceSimulation/NgspiceWidget.py | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/ngspiceSimulation') diff --git a/src/ngspiceSimulation/NgspiceWidget.py b/src/ngspiceSimulation/NgspiceWidget.py index 0c431470..2c3b00f1 100644 --- a/src/ngspiceSimulation/NgspiceWidget.py +++ b/src/ngspiceSimulation/NgspiceWidget.py @@ -27,7 +27,6 @@ class NgspiceWidget(QtWidgets.QWidget): self.terminalUi.setupUi(self.terminal) self.layout = QtWidgets.QVBoxLayout(self) self.layout.addWidget(self.terminal) - self.errorFlag = False print("Argument to ngspice command : ", command) @@ -101,8 +100,6 @@ class NgspiceWidget(QtWidgets.QWidget): str(self.process.readAllStandardOutput().data(), encoding='utf-8') ) stderror = self.process.readAllStandardError() - if stderror.toUpper().contains(b"ERROR"): - self.errorFlag = True self.terminalUi.simulationConsole.insertPlainText( str(stderror.data(), encoding='utf-8') ) \ No newline at end of file -- cgit