From 750e02f38a487900417df16f9e6aa65a007c1f12 Mon Sep 17 00:00:00 2001 From: Ruud Date: Sat, 8 Jun 2013 16:04:14 +0200 Subject: [PATCH] Close zipfile. fixes #1798 --- couchpotato/core/_base/updater/main.py | 1 + 1 file changed, 1 insertion(+) diff --git a/couchpotato/core/_base/updater/main.py b/couchpotato/core/_base/updater/main.py index e4e936ce..8c71d087 100644 --- a/couchpotato/core/_base/updater/main.py +++ b/couchpotato/core/_base/updater/main.py @@ -279,6 +279,7 @@ class SourceUpdater(BaseUpdater): if download_data.get('type') == 'zip': zip = zipfile.ZipFile(destination) zip.extractall(extracted_path) + zip.close() else: tar = tarfile.open(destination) tar.extractall(path = extracted_path)