Catching exceptions from Python 2.4 to 3.x

Steven D'Aprano steve+comp.lang.python at pearwood.info
Sat Nov 17 10:53:45 EST 2012


On Sat, 17 Nov 2012 14:26:43 +1100, Cameron Simpson wrote:

> On 17Nov2012 03:12, Steven D'Aprano
> <steve+comp.lang.python at pearwood.info> wrote:

> | Is there some other trick to grab the current exception from inside an
> | except block?
> 
> sys.exc_info ?


Thanks, that is just what I was looking for.



-- 
Steven



More information about the Python-list mailing list