diff --git a/PyMca5/PyMcaPlugins/NNMAStackPlugin.py b/PyMca5/PyMcaPlugins/NNMAStackPlugin.py index 6cdab8ab9..86b748da5 100644 --- a/PyMca5/PyMcaPlugins/NNMAStackPlugin.py +++ b/PyMca5/PyMcaPlugins/NNMAStackPlugin.py @@ -251,10 +251,11 @@ def threadFinished(self): if type(result) == type((1,)): #if we receive a tuple there was an error if len(result): - if isinstance(result[0], str) and result[0] == "Exception": self._status.setText("Ready after calculation error") - self.configurationWidget.setEnabled(True) - raise Exception(result[1], result[2]) - return + if isinstance(result[0], str) and result[0] == "Exception": + self._status.setText("Ready after calculation error") + self.configurationWidget.setEnabled(True) + raise Exception(result[1], result[2]) + return self._status.setText("Ready") curve = self.configurationWidget.getSpectrum(binned=True) if curve not in [None, []]: