mailr15184 - /branches/spec_api/specific_fns/api_objects.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on January 19, 2012 - 09:46:
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]




Related Messages


Powered by MHonArc, Updated Thu Jan 19 10:00:02 2012