diff --git a/tools/donate-cpu.py b/tools/donate-cpu.py index 00fabdc44..836039aa6 100644 --- a/tools/donate-cpu.py +++ b/tools/donate-cpu.py @@ -164,8 +164,11 @@ def unpackPackage(workPath, tgz): # Skip dangerous file names continue elif member.name.lower().endswith(('.c', '.cl', '.cpp', '.cxx', '.cc', '.c++', '.h', '.hpp', '.hxx', '.hh', '.tpp', '.txx')): - tf.extract(member.name) - print(member.name) + try: + tf.extract(member.name) + print(member.name) + except OSError: + pass tf.close() os.chdir(workPath)