Skip to content

Commit

Permalink
Correct syntax error
Browse files Browse the repository at this point in the history
  • Loading branch information
vasole committed Nov 15, 2023
1 parent 7f8b2e7 commit 519aa73
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions PyMca5/PyMcaPlugins/NNMAStackPlugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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, []]:
Expand Down

0 comments on commit 519aa73

Please sign in to comment.