Author: bugman Date: Thu Jan 15 10:24:37 2015 New Revision: 27192 URL: http://svn.gna.org/viewcvs/relax?rev=27192&view=rev Log: More robustness for the spin viewer GUI window prune_*() methods. The data returned from the self.tree.GetItemPyData(key) call can in rare racing cases not contain the 'id' key. This is now being checked for and are being skipped in the prune_mol(), prune_res() and prune_spin() methods. The problem was found in the Mf.test_bug_20479_gui_final_pipe system test when running the command: for i in {1..10}; do ./relax --gui-tests --time -d &>> gui_tests.log; done Modified: trunk/gui/spin_viewer/tree.py Modified: trunk/gui/spin_viewer/tree.py URL: http://svn.gna.org/viewcvs/relax/trunk/gui/spin_viewer/tree.py?rev=27192&r1=27191&r2=27192&view=diff ============================================================================== --- trunk/gui/spin_viewer/tree.py (original) +++ trunk/gui/spin_viewer/tree.py Thu Jan 15 10:24:37 2015 @@ -741,7 +741,7 @@ info = self.tree.GetItemPyData(key) # No info. - if info == None: + if info == None or 'id' not in info: continue # Add to the prune list if it has been removed. @@ -770,7 +770,7 @@ info = self.tree.GetItemPyData(key) # No info. - if info == None: + if info == None or 'id' not in info: continue # Get the residue. @@ -804,7 +804,7 @@ info = self.tree.GetItemPyData(key) # No info. - if info == None: + if info == None or 'id' not in info: continue # Get the spin.