[Zope3-checkins] CVS: Zope3/src/zope/app/browser/component - interfacewidget.py:1.36

Stephan Richter srichter at cosmos.phy.tufts.edu
Fri Aug 8 20:16:43 EDT 2003


Update of /cvs-repository/Zope3/src/zope/app/browser/component
In directory cvs.zope.org:/tmp/cvs-serv30143/browser/component

Modified Files:
	interfacewidget.py 
Log Message:
Fixed code to fix two tests. Sidnei, I think this was you. ;-)


=== Zope3/src/zope/app/browser/component/interfacewidget.py 1.35 => 1.36 ===
--- Zope3/src/zope/app/browser/component/interfacewidget.py:1.35	Fri Aug  8 16:53:36 2003
+++ Zope3/src/zope/app/browser/component/interfacewidget.py	Fri Aug  8 19:16:39 2003
@@ -61,7 +61,8 @@
                 # Convert to conversion error
                 exc = ConversionError(sys.exc_info()[1])
                 self.error = ConversionError, exc, sys.exc_info()[2]
-                raise self.error
+                # XXX: Error message should be better
+                raise self.error, 'Conversion Error'
 
         if not optional:
             try:
@@ -181,7 +182,8 @@
             # Convert to conversion error
             exc = ConversionError(sys.exc_info()[1])
             self.error = ConversionError, exc, sys.exc_info()[2]
-            raise self.error
+            # XXX: Error message should be better
+            raise self.error, 'Conversion Error'
 
         if not optional:
             try:




More information about the Zope3-Checkins mailing list