mailr5925 - /1.3/relax_errors.py


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

Header


Content

Posted by edward on April 21, 2008 - 16:17:
Author: bugman
Date: Mon Apr 21 16:08:50 2008
New Revision: 5925

URL: http://svn.gna.org/viewcvs/relax?rev=5925&view=rev
Log:
Fix for the RelaxSequenceError class.  The pipe arg is now optional.


Modified:
    1.3/relax_errors.py

Modified: 1.3/relax_errors.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/relax_errors.py?rev=5925&r1=5924&r2=5925&view=diff
==============================================================================
--- 1.3/relax_errors.py (original)
+++ 1.3/relax_errors.py Mon Apr 21 16:08:50 2008
@@ -457,8 +457,11 @@
 
 # The sequence already exists.
 class RelaxSequenceError(BaseError):
-    def __init__(self, pipe):
-        self.text = "The sequence data for the data pipe " + `pipe` + " 
already exists."
+    def __init__(self, pipe=None):
+        if pipe == None:
+            self.text = "The sequence data already exists."
+        else:
+            self.text = "The sequence data for the data pipe " + `pipe` + " 
already exists."
         if Debug:
             self.save_state()
 




Related Messages


Powered by MHonArc, Updated Mon Apr 21 16:40:20 2008