Author: bugman Date: Sat Jun 2 19:24:15 2012 New Revision: 16599 URL: http://svn.gna.org/viewcvs/relax?rev=16599&view=rev Log: Added a check to Uf_tables.get_table() to make sure that the table corresponding to the label exists. Modified: branches/uf_redesign/user_functions/data.py Modified: branches/uf_redesign/user_functions/data.py URL: http://svn.gna.org/viewcvs/relax/branches/uf_redesign/user_functions/data.py?rev=16599&r1=16598&r2=16599&view=diff ============================================================================== --- branches/uf_redesign/user_functions/data.py (original) +++ branches/uf_redesign/user_functions/data.py Sat Jun 2 19:24:15 2012 @@ -247,5 +247,9 @@ @rtype: user_functions.objects.Table instance """ + # Check the label. + if label not in self._tables.keys(): + raise RelaxError("The table with label '%s' does not exist." % label) + # Return the table. return self._tables[label]