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:
parent
2c8008356b
commit
e89478e529
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user