Author: bugman Date: Wed Oct 17 11:37:13 2012 New Revision: 17889 URL: http://svn.gna.org/viewcvs/relax?rev=17889&view=rev Log: Added data pipe bundle error checking for the GUI pipe editor window associate_auto() method. Modified: trunk/gui/pipe_editor.py Modified: trunk/gui/pipe_editor.py URL: http://svn.gna.org/viewcvs/relax/trunk/gui/pipe_editor.py?rev=17889&r1=17888&r2=17889&view=diff ============================================================================== --- trunk/gui/pipe_editor.py (original) +++ trunk/gui/pipe_editor.py Wed Oct 17 11:37:13 2012 @@ -30,6 +30,7 @@ from data import Relax_data_store; ds = Relax_data_store() from generic_fns.pipes import cdp_name, delete, get_bundle, get_type, pipe_names, switch from graphics import fetch_icon +from relax_errors import RelaxError from status import Status; status = Status() # relax GUI module imports. @@ -323,9 +324,13 @@ if not hasattr(ds, 'relax_gui'): self.gui.init_data() - # The type. + # The type and data pipe bundle. type = get_type(self.selected_pipe) bundle = get_bundle(self.selected_pipe) + + # Error checking. + if bundle == None: + raise RelaxError("The selected data pipe is not associated with a data pipe bundle.") # The name. names = {