fix winzzoz per update da file zip

This commit is contained in:
marco
2019-10-18 22:23:44 +02:00
parent 0201d47113
commit 40531e074c

View File

@@ -242,8 +242,9 @@ def updateFromZip():
try:
hash = fixZipGetHash(localfilename)
unzipper = ziptools()
unzipper.extract(localfilename, destpathname)
import zipfile
with zipfile.ZipFile(localfilename, "r") as zip_ref:
zip_ref.extractall(destpathname)
except Exception as e:
logger.info('Non sono riuscito ad estrarre il file zip')
logger.info(e)