1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-04 14:30:11 +01:00

update: do not crash on APKs without icons when using androguard

This commit is contained in:
Hans-Christoph Steiner 2018-03-13 11:19:19 +01:00
parent 2c8008356b
commit e89478e529

View File

@ -1095,7 +1095,7 @@ def _get_apk_icons_src(apkfile, icon_name):
else:
density = '160'
icons_src[density] = m.group(0)
if icons_src.get('-1') is None:
if icons_src.get('-1') is None and '160' in icons_src:
icons_src['-1'] = icons_src['160']
return icons_src