Author: bugman Date: Fri Feb 27 14:31:58 2009 New Revision: 8879 URL: http://svn.gna.org/viewcvs/relax?rev=8879&view=rev Log: Allowed molecule.name() to name unnamed molecules. I.e. the mol_id arg can be None. Modified: 1.3/prompt/molecule.py Modified: 1.3/prompt/molecule.py URL: http://svn.gna.org/viewcvs/relax/1.3/prompt/molecule.py?rev=8879&r1=8878&r2=8879&view=diff ============================================================================== --- 1.3/prompt/molecule.py (original) +++ 1.3/prompt/molecule.py Fri Feb 27 14:31:58 2009 @@ -242,8 +242,8 @@ print text # Residue identification string. - if type(mol_id) != str: - raise RelaxStrError, ('molecule identification string', mol_id) + if mol_id and type(mol_id) != str: + raise RelaxNoneStrError, ('molecule identification string', mol_id) # New molecule name. if type(name) != str: