mailr7248 - /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 September 24, 2008 - 17:36:
Author: bugman
Date: Wed Sep 24 17:36:02 2008
New Revision: 7248

URL: http://svn.gna.org/viewcvs/relax?rev=7248&view=rev
Log:
The pipe argument is now optional for RelaxNoSimError.


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=7248&r1=7247&r2=7248&view=diff
==============================================================================
--- 1.3/relax_errors.py (original)
+++ 1.3/relax_errors.py Wed Sep 24 17:36:02 2008
@@ -750,8 +750,11 @@
 
 # No simulations.
 class RelaxNoSimError(BaseError):
-    def __init__(self, pipe):
-        self.text = "Simulations for the data pipe " + `pipe` + " have not 
been setup."
+    def __init__(self, pipe=None):
+        if pipe:
+            self.text = "Simulations for the data pipe " + `pipe` + " have 
not been setup."
+        else:
+            self.text = "Simulations have not been setup."
         if Debug:
             self.save_state()
 




Related Messages


Powered by MHonArc, Updated Wed Sep 24 18:00:05 2008