Author: bugman Date: Sat Jun 2 19:22:33 2012 New Revision: 16597 URL: http://svn.gna.org/viewcvs/relax?rev=16597&view=rev Log: Added a check to Desc_container.add_table() to make sure the label is a string! Modified: branches/uf_redesign/user_functions/objects.py Modified: branches/uf_redesign/user_functions/objects.py URL: http://svn.gna.org/viewcvs/relax/branches/uf_redesign/user_functions/objects.py?rev=16597&r1=16596&r2=16597&view=diff ============================================================================== --- branches/uf_redesign/user_functions/objects.py (original) +++ branches/uf_redesign/user_functions/objects.py Sat Jun 2 19:22:33 2012 @@ -170,6 +170,10 @@ @param label: The unique label corresponding to a user_functions.objects.Table instance. @type label: str """ + + # Check. + if not isinstance(label, str): + raise RelaxError("The table label '%s' is not a valid string.") # Add the table. self._data.append(label)