diff --git a/scripts/SANS/sans/gui_logic/models/create_state.py b/scripts/SANS/sans/gui_logic/models/create_state.py index 2cffaa9f6c076de73b446b5f6fb14e727c5c396c..ec4d3e59e7fb856bce43bb7a4aef2fa8d897b216 100644 --- a/scripts/SANS/sans/gui_logic/models/create_state.py +++ b/scripts/SANS/sans/gui_logic/models/create_state.py @@ -47,7 +47,7 @@ def _create_row_state(row, table_model, state_model, facility, instrument, file_ state = gui_state_director.create_state(row, instrument=instrument, file_lookup=file_lookup) return state except (ValueError, RuntimeError) as e: - return "{}".format(row, str(e)) + return "{}".format(str(e)) def __is_empty_row(row, table): diff --git a/scripts/SANS/sans/gui_logic/presenter/run_tab_presenter.py b/scripts/SANS/sans/gui_logic/presenter/run_tab_presenter.py index 4e33d37d848c9a379f6691911712d1ad68735838..47cda7d1fa636e2a8a969301afabc0851a7c4d81 100644 --- a/scripts/SANS/sans/gui_logic/presenter/run_tab_presenter.py +++ b/scripts/SANS/sans/gui_logic/presenter/run_tab_presenter.py @@ -359,13 +359,14 @@ class RunTabPresenter(object): selected_rows = self._view.get_selected_rows() selected_rows = selected_rows if selected_rows else range(self._table_model.get_number_of_rows()) states, errors = self.get_states(row_index=selected_rows) - if not states: - raise RuntimeError("There seems to have been an issue with setting the states. Make sure that a user file" - " has been loaded") for row, error in errors.items(): self.on_processing_error(row, error) + if not states: + self.on_processing_finished(None) + return + # 4. Create the graph if continuous output is specified if mantidplot: if self._view.plot_results and not mantidplot.graph(self.output_graph):