[Zope] Except Bad Request
hawelek_tlen
hawelek at tlen.pl
Tue Jun 8 18:22:46 EDT 2004
Hi,
I want to catch Exception Bad Request,
I have Python Script with parametr id_con:
id_con='con_'+log
str_con = log+'/'+dbpassw+ '@ora9cip'
try:
container.manage_addZOracleConnection(id_con,'',str_con,check=1, REQUEST=None)
except:
return "ERROR"
else:
return id_con
in Handling Exception I want to catch Exception Bad Request, I get this message always when I try to add new connection, that already exist,
this code above catch all Exception unfortunatelly,
I ask for help,
thanks®ards,
Adam
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zope/attachments/20040609/43f75d24/attachment.html
More information about the Zope
mailing list