mirror of
https://github.com/f-droid/fdroidserver.git
synced 2026-05-16 12:39:35 -04:00
update: close unclosed Image instance
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user