mailr17892 - /trunk/gui/pipe_editor.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on October 17, 2012 - 11:59:
Author: bugman
Date: Wed Oct 17 11:59:46 2012
New Revision: 17892

URL: http://svn.gna.org/viewcvs/relax?rev=17892&view=rev
Log:
More error checking for the associate_auto() method of the data pipe editor 
window.


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=17892&r1=17891&r2=17892&view=diff
==============================================================================
--- trunk/gui/pipe_editor.py (original)
+++ trunk/gui/pipe_editor.py Wed Oct 17 11:59:46 2012
@@ -329,6 +329,8 @@
         bundle = get_bundle(self.selected_pipe)
 
         # Error checking.
+        if self.selected_pipe == None:
+            raise RelaxError("No data pipe has been selected - this is not 
possible.")
         if bundle == None:
             raise RelaxError("The selected data pipe is not associated with 
a data pipe bundle.")
 




Related Messages


Powered by MHonArc, Updated Wed Oct 17 13:40:02 2012