Author: bugman Date: Mon Jan 7 12:03:33 2008 New Revision: 4408 URL: http://svn.gna.org/viewcvs/relax?rev=4408&view=rev Log: Bug fix for the minimise() user function. All arguments are now checked if they are strings. Modified: 1.3/prompt/minimisation.py Modified: 1.3/prompt/minimisation.py URL: http://svn.gna.org/viewcvs/relax/1.3/prompt/minimisation.py?rev=4408&r1=4407&r2=4408&view=diff ============================================================================== --- 1.3/prompt/minimisation.py (original) +++ 1.3/prompt/minimisation.py Mon Jan 7 12:03:33 2008 @@ -293,8 +293,9 @@ # Minimisation algorithm. if len(args) == 0: raise RelaxNoneError, 'minimisation algorithm' - elif type(args[0]) != str: - raise RelaxStrError, ('minimisation algorithm', args[0]) + for i in xrange(len(args)): + if type(args[i]) != str: + raise RelaxStrError, ('minimisation algorithm', args[0]) min_algor = args[0] # Minimisation options.