mailr3685 - /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 November 20, 2007 - 16:22:
Author: bugman
Date: Tue Nov 20 16:22:56 2007
New Revision: 3685

URL: http://svn.gna.org/viewcvs/relax?rev=3685&view=rev
Log:
Bug fix for the RelaxNoPipeError error class.

The pipe argument of 0 was not being caught.


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=3685&r1=3684&r2=3685&view=diff
==============================================================================
--- 1.3/relax_errors.py (original)
+++ 1.3/relax_errors.py Tue Nov 20 16:22:56 2007
@@ -524,7 +524,7 @@
 # No data pipe exists.
 class RelaxNoPipeError(BaseError):
     def __init__(self, pipe=None):
-        if pipe:
+        if pipe != None:
             self.text = "The data pipe " + `pipe` + " has not been created 
yet."
         else:
             self.text = "No data pipes currently exist.  Please use the 
pipe.create() user function first."




Related Messages


Powered by MHonArc, Updated Tue Nov 20 17:00:30 2007