Author: bugman Date: Tue Jun 19 11:22:16 2012 New Revision: 16948 URL: http://svn.gna.org/viewcvs/relax?rev=16948&view=rev Log: Expanded the RelaxNoValueError to handle one or two spin IDs as arguments. This is to better identify which spins or interatomic data containers are deficient. Modified: branches/interatomic/relax_errors.py Modified: branches/interatomic/relax_errors.py URL: http://svn.gna.org/viewcvs/relax/branches/interatomic/relax_errors.py?rev=16948&r1=16947&r2=16948&view=diff ============================================================================== --- branches/interatomic/relax_errors.py (original) +++ branches/interatomic/relax_errors.py Tue Jun 19 11:22:16 2012 @@ -864,8 +864,13 @@ # No data value. class RelaxNoValueError(BaseError): - def __init__(self, name): - self.text = "The " + repr(name) + " value has not yet been set." + def __init__(self, name, spin_id=None, spin_id2=None): + if spin_id2 != None: + self.text = "The %s value has not yet been set for spins '%s' and '%s'." % (name, spin_id, spin_id2) + elif spin_id != None: + self.text = "The %s value has not yet been set for spin '%s'." % (name, spin_id) + else: + self.text = "The " + repr(name) + " value has not yet been set." # Unknown data type. class RelaxUnknownDataTypeError(BaseError):