[Zope-DB] catching sql method exceptions inside python script s

Smith, Neil (Worcester) Neil.Smith at npower.com
Mon Apr 5 09:12:03 EDT 2004


To save us all wading through the zope-dev archives, is there any chance you
could give us a very brief summary of the problem?  Is this why recent Zope
versions seem plagued by random "not connected.." errors.

-- 
Neil



-----Original Message-----
From: Chris Withers [mailto:lists at simplistix.co.uk]
Sent: 05 April 2004 11:16
To: Jim Abramson
Cc: zope-db at zope.org
Subject: Re: [Zope-DB] catching sql method exceptions inside python
scripts


Jim Abramson wrote:

> (2.6.1)
> Module Shared.DC.ZRDB.DA, line 399, in __call__
> 
> 399:        try: DB__=dbc()
> 400:        except: raise 'Database Error', (
> 401:            '%s is not connected to a database' % self.id)

*chuckles*

I'm currently campaigning on zope-dev to have that particular turd revoked
;-)

Check the list archives, no one has raised any valid concerns so far, so
I'll 
make the change as soon sa I get the time...

cheers,

Chris

-- 
Simplistix - Content Management, Zope & Python Consulting
            - http://www.simplistix.co.uk



**********************************************************************
This e-mail is provided for general information purposes only and does not constitute investment or transactional advice. For  the avoidance of doubt the contents of this email are subject to contract and will not constitute a legally binding contract.

The information contained in this e-mail is confidential and intended only for the use of the addressee. If the reader of this message is not the addressee, you are hereby notified that you have received this e-mail in error and you must not copy, disseminate, distribute, use or take any action as a result of the information contained in it.
    
If you have received this e-mail in error, please notify postmaster at npower.com (UK 01384 275454) and delete it immediately from your system.
    
Neither Npower nor any of the other companies in the RWE Innogy group from whom this e-mail originates accept any responsibility for losses or damage as a result of any viruses and it is your responsibility to check attachments (if any) for viruses.
Npower Limited Registered office: Windmill Hill Business Park, Whitehill Way, Swindon SN5 6PB. Registered in England and Wales: number 3653277.  This e-mail may be sent on behalf of a member of the RWE Innogy group of companies.
**********************************************************************




More information about the Zope-DB mailing list