Is there a graceful way to handle a missing file? Each species page on my website has a footer to insert a preformated table of current inventory. These are dumped from my inventory databse. However sometimes that table doesn't exist because my page is called "Native Pussy Willow" and the inventory table is called Pussy_Willow_(Native).inc
I would like it to just ignore the missing file, or log it, but still create the page. I tried [% TRY %] [% PROCESS Inventory.inc %] [% CATCH %] [% END %] Thinking that I could just do nothing with the error, but this still fusses. What I would like to do is log all errors to a separate file (so I have a list in one place of what to fix) but create as much of the page as possible. What is the best way to do this? -- Sherwood Botsford Sherwood's Forests Warburg, Alberta T0C 2T0 http://www.sherwoods-forests.com 780-848-2548 _______________________________________________ templates mailing list [email protected] http://mail.template-toolkit.org/mailman/listinfo/templates
