2012/7/12 John Gordon <gor...@panix.com>: > In <mailman.2043.1342102625.4697.python-l...@python.org> andrea crotti > <andrea.crott...@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.. -- http://mail.python.org/mailman/listinfo/python-list