Dieter Maurer wrote:

   try: DB__=dbc()
     exc_type, exc_value, trc = sys.exc_info()
     raise DatabaseError('%s is not connected to a database' %,
                         exc_value), trc

I didn't know you could re-raise a traceback like this... where's tha tsyntax documented?

Define "DatabaseError" in such a way that its "__str__" includes
information about the original exception.

This seems needlessly overcomplicated to me...


Simplistix - Content Management, Zope & Python Consulting

Zope-Dev maillist - [EMAIL PROTECTED]
** No cross posts or HTML encoding! **
(Related lists - )

Reply via email to