mailr8217 - /branches/multi_structure/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 18, 2008 - 13:42:
Author: bugman
Date: Thu Dec 18 13:42:20 2008
New Revision: 8217

URL: http://svn.gna.org/viewcvs/relax?rev=8217&view=rev
Log:
Created the new RelaxNoneStrListStrError error class and fixed the 
RelaxNoneStrListError print out.


Modified:
    branches/multi_structure/relax_errors.py

Modified: branches/multi_structure/relax_errors.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/multi_structure/relax_errors.py?rev=8217&r1=8216&r2=8217&view=diff
==============================================================================
--- branches/multi_structure/relax_errors.py (original)
+++ branches/multi_structure/relax_errors.py Thu Dec 18 13:42:20 2008
@@ -426,7 +426,14 @@
 # None, string, or list.
 class RelaxNoneStrListError(BaseError):
     def __init__(self, name, value):
-        self.text = "The " + name + " argument " + `value` + " must either 
be a string or None."
+        self.text = "The " + name + " argument " + `value` + " must either 
be None, a string or a list."
+        if Debug:
+            self.save_state()
+
+# None, string, or list of strings.
+class RelaxNoneStrListStrError(BaseError):
+    def __init__(self, name, value):
+        self.text = "The " + name + " argument " + `value` + " must either 
be None, a string or a list of strings."
         if Debug:
             self.save_state()
 




Related Messages


Powered by MHonArc, Updated Thu Dec 18 14:00:04 2008