else:
msg = 'chain breaks between residues '+\
str(ires[-1])+' and '+str(i)+\
- ', server cannot add missing residues to PDB file'
+ ', server cannot add missing residues to PDB file - please repair the structure using e.g. Modeller'
break
if line[0:3] == 'TER':
newchain = True