Sandro Tosi <sandro.t...@gmail.com> added the comment: Hi, I don't understand why you think tarfile should not fail in case you're trying to add a non-existing file. the problem is that glob() already extracted a list of files&dirs and then while the script is tar-ring them, you're removing some of them -> script crash.
if you want to do it, then wrap tar.add() in a try..catch construct, but I think the behavior of tar.add() is correct here. Lars, you assigned this issue to yourself: what do you think it's the best action now (i was about to close it :) ? ---------- nosy: +sandro.tosi _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue7101> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com