Author: bugman Date: Sun Nov 18 21:48:31 2007 New Revision: 3578 URL: http://svn.gna.org/viewcvs/relax?rev=3578&view=rev Log: Fixed another bug in the spin.renumber() user function. The spin number was been checked if it was a string whereas the check should have been for an int. 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=3578&r1=3577&r2=3578&view=diff ============================================================================== --- 1.3/prompt/spin.py (original) +++ 1.3/prompt/spin.py Sun Nov 18 21:48:31 2007 @@ -311,8 +311,8 @@ raise RelaxStrError, ('spin identification string', spin_id) # New spin number. - if type(new_number) != str: - raise RelaxStrError, ('new spin number', new_number) + if type(new_number) != int: + raise RelaxIntError, ('new spin number', new_number) # Execute the functional code. spin.create(spin_num=spin_num, new_number=new_number)