Author: bugman Date: Mon Jun 23 23:17:37 2008 New Revision: 6463 URL: http://svn.gna.org/viewcvs/relax?rev=6463&view=rev Log: Bug fix for the RelaxValueError class. Modified: 1.3/relax_errors.py Modified: 1.3/relax_errors.py URL: http://svn.gna.org/viewcvs/relax/1.3/relax_errors.py?rev=6463&r1=6462&r2=6463&view=diff ============================================================================== --- 1.3/relax_errors.py (original) +++ 1.3/relax_errors.py Mon Jun 23 23:17:37 2008 @@ -702,8 +702,11 @@ # Value already exists. class RelaxValueError(BaseError): - def __init__(self, data_type, pipe): - self.text = "The data type " + `data_type` + " already exists for the data pipe " + `pipe` + "." + def __init__(self, data_type, pipe=None): + if pipe != None: + self.text = "The data type " + `data_type` + " already exists for the data pipe " + `pipe` + "." + else: + self.text = "The data type " + `data_type` + " already exists." if Debug: self.save_state()