Author: bugman Date: Mon Jul 2 22:07:41 2012 New Revision: 17142 URL: http://svn.gna.org/viewcvs/relax?rev=17142&view=rev Log: Improvement for the RelaxNoVectorsError class - the data pipe name is now optional. The print outs have been improved as well. Modified: trunk/relax_errors.py Modified: trunk/relax_errors.py URL: http://svn.gna.org/viewcvs/relax/trunk/relax_errors.py?rev=17142&r1=17141&r2=17142&view=diff ============================================================================== --- trunk/relax_errors.py (original) +++ trunk/relax_errors.py Mon Jul 2 22:07:41 2012 @@ -273,8 +273,11 @@ # No unit vectors. class RelaxNoVectorsError(BaseError): - def __init__(self, pipe): - self.text = "The unit XH bond vectors for the data pipe " + repr(pipe) + " have not been calculated." + def __init__(self, pipe=None): + if pipe: + self.text = "No unit vectors have been calculated for the data pipe '%s'" % pipe + else: + self.text = "No unit vectors have been calculated." # No chains within the PDB file. class RelaxNoPdbChainError(BaseError):