Author: bugman Date: Fri Jul 4 23:33:04 2008 New Revision: 6695 URL: http://svn.gna.org/viewcvs/relax?rev=6695&view=rev Log: Added a catch for empty atom columns in the CONECT record within __fill_object_from_pdb(). Modified: branches/rdc_analysis/generic_fns/structure/internal.py Modified: branches/rdc_analysis/generic_fns/structure/internal.py URL: http://svn.gna.org/viewcvs/relax/branches/rdc_analysis/generic_fns/structure/internal.py?rev=6695&r1=6694&r2=6695&view=diff ============================================================================== --- branches/rdc_analysis/generic_fns/structure/internal.py (original) +++ branches/rdc_analysis/generic_fns/structure/internal.py Fri Jul 4 23:33:04 2008 @@ -94,6 +94,11 @@ if record[0] == 'CONECT': # Loop over the atoms of the record. for i in xrange(len(record)-2): + # Skip if there is no record. + if record[i+2] == None: + continue + + # Make the connection. self.atom_connect(index1=self.__atom_index(record[1], struct_index), index2=self.__atom_index(record[i+2], struct_index), struct_index=struct_index)