[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/rdb/__init__.py Removed an ununderstandable XXX and clarified another.

Stephan Richter srichter at cosmos.phy.tufts.edu
Thu Jul 8 19:18:42 EDT 2004


Log message for revision 26271:
Removed an ununderstandable XXX and clarified another.



-=-
Modified: Zope3/trunk/src/zope/app/rdb/__init__.py
===================================================================
--- Zope3/trunk/src/zope/app/rdb/__init__.py	2004-07-08 23:17:34 UTC (rev 26270)
+++ Zope3/trunk/src/zope/app/rdb/__init__.py	2004-07-08 23:18:42 UTC (rev 26271)
@@ -332,12 +332,13 @@
 def queryForResults(conn, query):
     """Convenience function to quickly execute a query."""
 
-    # XXX need to do typing
     cursor = conn.cursor()
 
     try:
         cursor.execute(query)
-    except Exception, error:  # XXX This looks a bit yucky.
+    except Exception, error:
+        # Just catch the exception, so that we can convert it to a database
+        # exception.
         raise DatabaseException(str(error))
 
     if cursor.description is not None:



More information about the Zope3-Checkins mailing list