[Zope-Checkins] SVN: Zope/trunk/lib/python/Shared/DC/ZRDB/Connection.py fixed exc_info argument

Andreas Jung andreas at andreas-jung.com
Wed Oct 4 11:18:44 EDT 2006


Log message for revision 70530:
  fixed exc_info argument
  

Changed:
  U   Zope/trunk/lib/python/Shared/DC/ZRDB/Connection.py

-=-
Modified: Zope/trunk/lib/python/Shared/DC/ZRDB/Connection.py
===================================================================
--- Zope/trunk/lib/python/Shared/DC/ZRDB/Connection.py	2006-10-04 12:55:51 UTC (rev 70529)
+++ Zope/trunk/lib/python/Shared/DC/ZRDB/Connection.py	2006-10-04 15:18:44 UTC (rev 70530)
@@ -30,7 +30,6 @@
 from Aqueduct import custom_default_report
 from cStringIO import StringIO
 from Results import Results
-from sys import exc_info
 
 from cgi import escape
 import DocumentTemplate, RDB
@@ -72,7 +71,7 @@
             try: self.connect(self.connection_string)
             except:
                 LOG.error('Error connecting to relational database.',
-                          exc_info=exc_info())
+                          exc_info=True)
 
     def title_and_id(self):
         s=Connection.inheritedAttribute('title_and_id')(self)
@@ -160,7 +159,7 @@
                 self._v_database_connection.close()
         except:
             LOG.error('Error closing relational database connection.',
-                      exc_info=exc_info())
+                      exc_info=True)
         self._v_connected=''
         if REQUEST is not None:
             return self.manage_main(self, REQUEST)



More information about the Zope-Checkins mailing list