mailr3632 - /1.3/prompt/molecule.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on November 20, 2007 - 10:58:
Author: bugman
Date: Tue Nov 20 10:58:44 2007
New Revision: 3632

URL: http://svn.gna.org/viewcvs/relax?rev=3632&view=rev
Log:
Fixed a bug in the molecule.copy() user function, the pipe_to argument 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=3632&r1=3631&r2=3632&view=diff
==============================================================================
--- 1.3/prompt/molecule.py (original)
+++ 1.3/prompt/molecule.py Tue Nov 20 10:58:44 2007
@@ -100,8 +100,8 @@
             raise RelaxStrError, ('molecule from', mol_from)
 
         # The pipe_to argument.
-        if type(pipe_to) != str:
-            raise RelaxStrError, ('data pipe to', pipe_to)
+        if pipe_to != None and type(pipe_to) != str:
+            raise RelaxNoneStrError, ('data pipe to', pipe_to)
 
         # The molecule to argument.
         if type(mol_to) != str:




Related Messages


Powered by MHonArc, Updated Tue Nov 20 11:20:13 2007