Author: bugman Date: Tue Nov 20 16:09:55 2007 New Revision: 3682 URL: http://svn.gna.org/viewcvs/relax?rev=3682&view=rev Log: Bug fix for the residue.display() user function. The res_id argument is allowed to be None. 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=3682&r1=3681&r2=3682&view=diff ============================================================================== --- 1.3/prompt/residue.py (original) +++ 1.3/prompt/residue.py Tue Nov 20 16:09:55 2007 @@ -213,8 +213,8 @@ print text # The res_id argument. - if type(res_id) != str: - raise RelaxStrError, ('residue identification string', res_id) + if res_id != None and type(res_id) != str: + raise RelaxNoneStrError, ('residue identification string', res_id) # Execute the functional code. residue.display(res_id=res_id)