James Stroud <[EMAIL PROTECTED]> writes:
> > try:
> >     process_things()
> > except Reraise:
> >     raise
> > except:
> >     log_error()
> >
> 
> Why catch an error only to re-raise it?
> 
> This falls under http://c2.com/cgi/wiki?YouReallyArentGonnaNeedThis

No, without the reraise, the bare "except:" clause would capture the
exception incorrectly and log it as an error.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to