[Zope] Sendmail, Python and ZPT
Toby Dickenson
tdickenson@geminidataloggers.com
Mon, 4 Nov 2002 08:55:57 +0000
On Monday 04 November 2002 8:42 am, beno wrote:
> try:
> mailhost=3Dgetattr(context, context.mailScript('MailHost')[0].id)
> except:
> raise AttributeError, "cant find a Mail Host object"
>
> I changed the name of the script to mailScript() from superValues(). I
> didn't pass any parameters. The original script had *Mail Host* as oppo=
sed
> to *MailHost* but I tried both. What am I missing?
That bald except may be catching an error different to the one you are=20
expecting.