mailr4930 - /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 February 07, 2008 - 13:40:
Author: bugman
Date: Thu Feb  7 13:40:04 2008
New Revision: 4930

URL: http://svn.gna.org/viewcvs/relax?rev=4930&view=rev
Log:
Updated the RelaxPdbError class to not require the pipe argument.


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=4930&r1=4929&r2=4930&view=diff
==============================================================================
--- 1.3/relax_errors.py (original)
+++ 1.3/relax_errors.py Thu Feb  7 13:40:04 2008
@@ -130,8 +130,11 @@
 
 # PDB data corresponding to the data pipe already exists.
 class RelaxPdbError(BaseError):
-    def __init__(self, pipe):
-        self.text = "PDB data corresponding to the data pipe " + `pipe` + " 
already exists."
+    def __init__(self, pipe=None):
+        if pipe != None:
+            self.text = "PDB data corresponding to the data pipe " + `pipe` 
+ " already exists."
+        else:
+            self.text = "PDB data already exists."
         if Debug:
             self.save_state()
 




Related Messages


Powered by MHonArc, Updated Thu Feb 07 14:00:13 2008