Author: bugman Date: Thu Jan 19 09:46:45 2012 New Revision: 15184 URL: http://svn.gna.org/viewcvs/relax?rev=15184&view=rev Log: The Param_list.get_desc() method now returns None rather than a RelaxError if the param is missing. Modified: branches/spec_api/specific_fns/api_objects.py Modified: branches/spec_api/specific_fns/api_objects.py URL: http://svn.gna.org/viewcvs/relax/branches/spec_api/specific_fns/api_objects.py?rev=15184&r1=15183&r2=15184&view=diff ============================================================================== --- branches/spec_api/specific_fns/api_objects.py (original) +++ branches/spec_api/specific_fns/api_objects.py Thu Jan 19 09:46:45 2012 @@ -101,12 +101,12 @@ @param name: The name of the parameter. @type name: str @return: The description. - @rtype: str + @rtype: None or str """ # Check. if name not in self._names: - raise RelaxError("The parameter '%s' does not exist." % name) + return None # Return the description. return self._desc[name]