donate-cpu: take care of unhandled exception when unpacking archive

This commit is contained in:
Daniel Marjamäki 2018-11-22 08:44:24 +01:00
parent ff3fd80b46
commit a872b3f57a
1 changed files with 2 additions and 0 deletions

View File

@ -169,6 +169,8 @@ def unpackPackage(workPath, tgz):
tf.extract(member.name)
except OSError:
pass
except AttributeError:
pass
tf.close()
os.chdir(workPath)