Author: bugman Date: Tue Nov 20 10:54:56 2007 New Revision: 3629 URL: http://svn.gna.org/viewcvs/relax?rev=3629&view=rev Log: Fixed a bug in the molecule.copy() user function caused by the pipe_from argument. 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=3629&r1=3628&r2=3629&view=diff ============================================================================== --- 1.3/prompt/molecule.py (original) +++ 1.3/prompt/molecule.py Tue Nov 20 10:54:56 2007 @@ -27,7 +27,7 @@ import help from generic_fns import molecule from generic_fns.selection import id_string_doc -from relax_errors import RelaxIntError, RelaxStrError +from relax_errors import RelaxIntError, RelaxNoneStrError, RelaxStrError class Molecule: @@ -92,8 +92,8 @@ print text # The pipe_from argument. - if type(pipe_from) != str: - raise RelaxStrError, ('data pipe from', pipe_from) + if pipe_from != None and type(pipe_from) != str: + raise RelaxNoneStrError, ('data pipe from', pipe_from) # The molecule from argument. if type(mol_from) != str: