mailr3580 - /1.3/prompt/spin.py


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

Header


Content

Posted by edward on November 18, 2007 - 21:52:
Author: bugman
Date: Sun Nov 18 21:52:37 2007
New Revision: 3580

URL: http://svn.gna.org/viewcvs/relax?rev=3580&view=rev
Log:
Fixed a bug in the spin.diplay() user function.

The spin ID string was been checked if it was a string.  It can also be None!


Modified:
    1.3/prompt/spin.py

Modified: 1.3/prompt/spin.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/prompt/spin.py?rev=3580&r1=3579&r2=3580&view=diff
==============================================================================
--- 1.3/prompt/spin.py (original)
+++ 1.3/prompt/spin.py Sun Nov 18 21:52:37 2007
@@ -215,8 +215,8 @@
             print text
 
         # The spin_id argument.
-        if type(spin_id) != str:
-            raise RelaxStrError, ('spin identification string', spin_id)
+        if spin_id != None and type(spin_id) != str:
+            raise RelaxNoneStrError, ('spin identification string', spin_id)
 
         # Execute the functional code.
         spin.display(spin_id=spin_id)




Related Messages


Powered by MHonArc, Updated Sun Nov 18 22:00:13 2007