Author: bugman Date: Fri Feb 15 10:22:02 2008 New Revision: 5002 URL: http://svn.gna.org/viewcvs/relax?rev=5002&view=rev Log: Bug fix for the RelaxNoPdbError error, no pipe argument should be required. 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=5002&r1=5001&r2=5002&view=diff ============================================================================== --- branches/N_state_model/relax_errors.py (original) +++ branches/N_state_model/relax_errors.py Fri Feb 15 10:22:02 2008 @@ -140,8 +140,11 @@ # No PDB loaded. class RelaxNoPdbError(BaseError): - def __init__(self, pipe): - self.text = "No PDB file has been loaded for the data pipe " + `pipe` + "." + def __init__(self, pipe=None): + if pipe != None: + self.text = "No PDB file has been loaded for the data pipe " + `pipe` + "." + else: + self.text = "No PDB file has been loaded." if Debug: self.save_state()