Commit 22fc36df authored by Andreas Jung's avatar Andreas Jung

fixed exc_info argument

parent 403196ec
...@@ -30,7 +30,6 @@ from string import find, join, split ...@@ -30,7 +30,6 @@ from string import find, join, split
from Aqueduct import custom_default_report from Aqueduct import custom_default_report
from cStringIO import StringIO from cStringIO import StringIO
from Results import Results from Results import Results
from sys import exc_info
from cgi import escape from cgi import escape
import DocumentTemplate, RDB import DocumentTemplate, RDB
...@@ -72,7 +71,7 @@ class Connection( ...@@ -72,7 +71,7 @@ class Connection(
try: self.connect(self.connection_string) try: self.connect(self.connection_string)
except: except:
LOG.error('Error connecting to relational database.', LOG.error('Error connecting to relational database.',
exc_info=exc_info()) exc_info=True)
def title_and_id(self): def title_and_id(self):
s=Connection.inheritedAttribute('title_and_id')(self) s=Connection.inheritedAttribute('title_and_id')(self)
...@@ -160,7 +159,7 @@ class Connection( ...@@ -160,7 +159,7 @@ class Connection(
self._v_database_connection.close() self._v_database_connection.close()
except: except:
LOG.error('Error closing relational database connection.', LOG.error('Error closing relational database connection.',
exc_info=exc_info()) exc_info=True)
self._v_connected='' self._v_connected=''
if REQUEST is not None: if REQUEST is not None:
return self.manage_main(self, REQUEST) return self.manage_main(self, REQUEST)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment