1
0
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:
Hans-Christoph Steiner 2017-12-13 12:28:11 +01:00
parent 387eebc4d6
commit 8f45796ecb

View 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