Author: bugman Date: Fri Jan 11 11:54:01 2008 New Revision: 4640 URL: http://svn.gna.org/viewcvs/relax?rev=4640&view=rev Log: Modified the RelaxNoModelError. The pipe arg is replaced by the optional name arg. Modified: branches/N_state_model/relax_errors.py Modified: branches/N_state_model/relax_errors.py URL: http://svn.gna.org/viewcvs/relax/branches/N_state_model/relax_errors.py?rev=4640&r1=4639&r2=4640&view=diff ============================================================================== --- branches/N_state_model/relax_errors.py (original) +++ branches/N_state_model/relax_errors.py Fri Jan 11 11:54:01 2008 @@ -622,8 +622,11 @@ # The model has not been setup. class RelaxNoModelError(BaseError): - def __init__(self, pipe): - self.text = "The models corresponding to the data pipe " + `pipe` + " have not been setup." + def __init__(self, name=None): + if name != None: + self.text = "The " + name + " model has not been setup." + else: + self.text = "The model has not been setup." if Debug: self.save_state()