Lars Gustäbel l...@gustaebel.de added the comment:
I changed the default value for the errorlevel argument, so that fatal
errors are now raised as regular exceptions by default (trunk: r76780,
py3k: r76782). Thank you very much for bringing up this issue.
--
resolution: - accepted
Eli Venter even...@jcvi.org added the comment:
Yes, thanks errorlevel works as expected, and errors are correctly
generated. It's quite unintuitive to ignore fatal errors by default
however.
--
___
Python tracker rep...@bugs.python.org
New submission from Eli Venter even...@jcvi.org:
tarfile doesn't seem to return any error or raise any exception when an
extraction fills up the disk, making it hard to use safely. Both
extractall and extract suffer from this problem. I'm using CentOS 5.2
and python 2.6.2.
--
Lars Gustäbel l...@gustaebel.de added the comment:
The TarFile constructor (as well as tarfile.open) takes an errorlevel
keyword argument. See
http://docs.python.org/dev/library/tarfile.html#tarfile-objects
I quote: If errorlevel is 0, all errors are ignored when using
TarFile.extract().