[Zope-dev] Product dev

Shane Hathaway shane@digicool.com
Fri, 05 Jan 2001 09:35:30 -0500


Chris Withers wrote:
> 
> Shane Hathaway wrote:
> >
> > when a product has syntax errors.  One of the first things I did at
> > Digital Creations was make sure that got fixed. :-)
> 
> Does this mean this bit from your average product's __init__.py isn't
> neeeded anymore?
> 
>     except: # If we can't register, complain!
>         import sys, traceback, string
>         type, val, tb = sys.exc_info()
>         sys.stderr.write(string.join(traceback.format_exception(type,
> val, tb), ''))
>         del type, val, tb

That's right.  As long as you're in -D mode or you have the event log
going somewhere, you'll see these kind of exceptions.

Shane