mailr18136 - /trunk/relax_errors.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on December 14, 2012 - 10:14:
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):




Related Messages


Powered by MHonArc, Updated Fri Dec 14 10:20:01 2012