adding a simulation mode
andrea.crotti.0 at gmail.com
Thu Jul 12 17:37:42 CEST 2012
2012/7/12 John Gordon <gordon at panix.com>:
> In <mailman.2043.1342102625.4697.python-list at python.org> andrea crotti <andrea.crotti.0 at gmail.com> writes:
>> Well that's what I thought, but I can't find any explicit exit
>> anywhere in shutil, so what's going on there?
> Try catching SystemExit specifically (it doesn't inherit from Exception,
> so "except Exception" won't catch it.)
Ah yes that actually works, but I think is quite dodgy, why was it
done like this?
In shutil there is still no mention of SystemExit, and trying to raise
the single exceptions by and
doens't still make it exit, so I would still like to know how it is
possible just for curiosity..
More information about the Python-list