[Zope-dev] Greedy except clauses

Jeremy Hylton jeremy@digicool.com
Sat, 10 Feb 2001 01:48:42 -0500 (EST)


>>>>> "CW" == Chris Withers <chrisw@nipltd.com> writes:

  >> I am probably a bit idiosyncratic, but I prefer to avoid bare
  >> excepts at all costs.  I often use "except Exception:", otherwise
  >> I add a

  CW> Will that catch string exceptions?  eg: raise 'Something bad
  CW> happened'

No.

  CW> If not, then it's not much use in Zope, which is unfortunately
  CW> riddled with String exceptions :-S

That might be something worth fixing, too. :-)

Jeremy