Author: bugman Date: Tue Apr 11 09:38:46 2006 New Revision: 2464 URL: http://svn.gna.org/viewcvs/relax?rev=2464&view=rev Log: Fix to bug #5753. The bug is located at https://gna.org/bugs/?func=detailitem&item_id=5753. The fix simply involved adding a test for the presence of the run name key in self.relax.data.pdb. Modified: 1.2/generic_fns/molmol.py Modified: 1.2/generic_fns/molmol.py URL: http://svn.gna.org/viewcvs/relax/1.2/generic_fns/molmol.py?rev=2464&r1=2463&r2=2464&view=diff ============================================================================== --- 1.2/generic_fns/molmol.py (original) +++ 1.2/generic_fns/molmol.py Tue Apr 11 09:38:46 2006 @@ -82,7 +82,7 @@ return # Test if the PDB file has been loaded. - if hasattr(self.relax.data, 'pdb'): + if hasattr(self.relax.data, 'pdb') and self.relax.data.pdb.has_key(self.run): self.open_pdb() # Run InitAll to remove everything from molmol.