[Zope] Catch error

Cornelis J. de Brabander brabander@fsw.LeidenUniv.nl
Mon, 13 Mar 2000 09:33:32 +0100


> -----Original Message-----
> From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Sin
> Hang Kin
> Sent: maandag 13 maart 2000 0:54
> To: Zope Admin list
> Subject: [Zope] Catch error
>
>
> How can I catch the exceptions in dtml so if a page contain an error, only
> the error will be left out without making the whold page an error message?
>

Use try/except:

<dtml-try>
 <dtml-var qqq>
<dtml-except>
 Can't find 'qqq'
</dtml-try>

cb