Author: bugman Date: Tue Nov 20 16:06:53 2007 New Revision: 3679 URL: http://svn.gna.org/viewcvs/relax?rev=3679&view=rev Log: Bug fix for the residue.rename() user function. The res_id argument was being tested as an int whereas it is a str. Modified: 1.3/prompt/residue.py Modified: 1.3/prompt/residue.py URL: http://svn.gna.org/viewcvs/relax/1.3/prompt/residue.py?rev=3679&r1=3678&r2=3679&view=diff ============================================================================== --- 1.3/prompt/residue.py (original) +++ 1.3/prompt/residue.py Tue Nov 20 16:06:53 2007 @@ -260,8 +260,8 @@ print text # Residue identification string. - if type(res_id) != int: - raise RelaxIntError, ('residue identification string', res_id) + if type(res_id) != str: + raise RelaxStrError, ('residue identification string', res_id) # New residue name. if type(new_name) != str: