mailr3637 - /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 - 11:22:
Author: bugman
Date: Tue Nov 20 11:22:17 2007
New Revision: 3637

URL: http://svn.gna.org/viewcvs/relax?rev=3637&view=rev
Log:
Bug fix for the molecule.display() user function - mol_id 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=3637&r1=3636&r2=3637&view=diff
==============================================================================
--- 1.3/prompt/molecule.py (original)
+++ 1.3/prompt/molecule.py Tue Nov 20 11:22:17 2007
@@ -196,8 +196,8 @@
             print text
 
         # The molecule identifier argument.
-        if type(mol_id) != str:
-            raise RelaxStrError, ('molecule identifier', mol_id)
+        if mol_id != None or type(mol_id) != str:
+            raise RelaxNoneStrError, ('molecule identifier', mol_id)
 
         # Execute the functional code.
         molecule.display(mol_id=mol_id)




Related Messages


Powered by MHonArc, Updated Tue Nov 20 11:40:07 2007