chiark / gitweb /
update: close unclosed Image instance
authorHans-Christoph Steiner <hans@eds.org>
Wed, 13 Dec 2017 11:28:11 +0000 (12:28 +0100)
committerHans-Christoph Steiner <hans@eds.org>
Thu, 14 Dec 2017 15:57:22 +0000 (16:57 +0100)
fdroidserver/update.py

index 4611b12761cdee5c5aebe69b11ca069dbbac412f..15013347f6d8b0c6177e12ae49575bb62b912985 100644 (file)
@@ -1487,6 +1487,8 @@ def extract_apk_icons(icon_filename, apk, apkzip, repo_dir):
         except Exception as e:
             logging.warning(_("Failed reading {path}: {error}")
                             .format(path=icon_path, error=e))
+        finally:
+            im.close()
 
     if apk['icons']:
         apk['icon'] = icon_filename