mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-11-14 11:00:10 +01:00
update: close unclosed Image instance
This commit is contained in:
parent
387eebc4d6
commit
8f45796ecb
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user