Author: bugman Date: Tue Nov 20 11:40:37 2007 New Revision: 3647 URL: http://svn.gna.org/viewcvs/relax?rev=3647&view=rev Log: Bug fix for the molecule.copy() user function. The arg 'mol_to' 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=3647&r1=3646&r2=3647&view=diff ============================================================================== --- 1.3/prompt/molecule.py (original) +++ 1.3/prompt/molecule.py Tue Nov 20 11:40:37 2007 @@ -104,8 +104,8 @@ raise RelaxNoneStrError, ('data pipe to', pipe_to) # The molecule to argument. - if type(mol_to) != str: - raise RelaxStrError, ('molecule to', mol_to) + if mol_to != None and type(mol_to) != str: + raise RelaxNoneStrError, ('molecule to', mol_to) # Execute the functional code. molecule.copy(pipe_from=pipe_from, mol_from=mol_from, pipe_to=pipe_to, mol_to=mol_to)