Author: bugman Date: Fri Dec 14 10:14:37 2012 New Revision: 18136 URL: http://svn.gna.org/viewcvs/relax?rev=18136&view=rev Log: Bug fix for the RelaxNoAlignError error class - the printout statement was broken. Modified: trunk/relax_errors.py Modified: trunk/relax_errors.py URL: http://svn.gna.org/viewcvs/relax/trunk/relax_errors.py?rev=18136&r1=18135&r2=18136&view=diff ============================================================================== --- trunk/relax_errors.py (original) +++ trunk/relax_errors.py Fri Dec 14 10:14:37 2012 @@ -750,8 +750,11 @@ # No alignment data. class RelaxNoAlignError(BaseError): - def __init__(self, align_id, pipe): - self.text = "The alignment ID string '%s' is missing from the data pipe '%s'." % align_id + def __init__(self, align_id, pipe=None): + if pipe != None: + self.text = "The alignment ID string '%s' is missing from the data pipe '%s'." % (align_id, pipe) + else: + self.text = "The alignment ID string '%s' is missing." % align_id # Alignment data already exists. class RelaxAlignError(BaseError):