[pypy-svn] r59392 - pypy/trunk/pypy/lib

fijal at codespeak.net fijal at codespeak.net
Sat Oct 25 13:01:32 CEST 2008


Author: fijal
Date: Sat Oct 25 13:01:31 2008
New Revision: 59392

Modified:
   pypy/trunk/pypy/lib/_exceptions.py
Log:
We should have a message on all exceptions


Modified: pypy/trunk/pypy/lib/_exceptions.py
==============================================================================
--- pypy/trunk/pypy/lib/_exceptions.py	(original)
+++ pypy/trunk/pypy/lib/_exceptions.py	Sat Oct 25 13:01:31 2008
@@ -363,6 +363,7 @@
                 raise TypeError('argument 4 must be str, not %s'%type(args[4]))
         else:
             raise TypeError('function takes exactly 5 arguments (%d given)'%argc)
+        self.message = ""
 
     def __str__(self):
         if self.end == self.start + 1:
@@ -440,6 +441,7 @@
                 raise TypeError('argument 4 must be str, not %s'%type(args[4]))
         else:
             raise TypeError('function takes exactly 5 arguments (%d given)'%argc)
+        self.message = ""
 
     def __str__(self):
         if self.end == self.start + 1:



More information about the Pypy-commit mailing list