mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-10-08 10:21:05 +03: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
1 changed files with 1 additions and 1 deletions
|
@ -1492,7 +1492,7 @@ def extract_apk_icons(icon_filename, apk, apkzip, repo_dir):
|
|||
logging.warning(_("Failed reading {path}: {error}")
|
||||
.format(path=icon_path, error=e))
|
||||
finally:
|
||||
if im:
|
||||
if im and hasattr(im, 'close'):
|
||||
im.close()
|
||||
|
||||
if apk['icons']:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue