mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-10-03 17:50:11 +02:00
update: support working with old versions of PIL/Pillow
Image.close() was added in Pillow 2.4 or so.
This commit is contained in:
parent
9087ec76f3
commit
2659312a7c
@ -1492,7 +1492,7 @@ def extract_apk_icons(icon_filename, apk, apkzip, repo_dir):
|
|||||||
logging.warning(_("Failed reading {path}: {error}")
|
logging.warning(_("Failed reading {path}: {error}")
|
||||||
.format(path=icon_path, error=e))
|
.format(path=icon_path, error=e))
|
||||||
finally:
|
finally:
|
||||||
if im:
|
if im and hasattr(im, 'close'):
|
||||||
im.close()
|
im.close()
|
||||||
|
|
||||||
if apk['icons']:
|
if apk['icons']:
|
||||||
|
Loading…
Reference in New Issue
Block a user