[Zope] Trapping exceptions
tony10 at ximera.net
Tue Feb 28 16:01:52 EST 2006
Sorry if this is a silly question but I've not found anything via Google
I am using a MailHost in a Python script. I need to trap error conditions.
When I run without trapping I can get exception SMTPSenderRefused.
I inserted trapping - eg
from web site')
This gave error global name 'SMTPSenderRefused' is not defined
I tried importing smtplib and adding it to the except line and then got
a permissions problem.
You are not allowed to access SMTPSenderRefused in this context
I'd appreciate any help with this.
More information about the Zope