1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-07-04 16:30:12 +02:00

Handle error when parsing WebView icon

Fixes #903
This commit is contained in:
Noah Andrews 2021-09-17 17:33:58 +00:00 committed by Hans-Christoph Steiner
parent da10acfe2c
commit 75989ff59a
No known key found for this signature in database
GPG Key ID: 3E177817BA1B9BFA

View File

@ -1543,8 +1543,8 @@ def scan_apk_androguard(apk, apkfile):
icon_id_str = apkobject.get_element("application", "icon")
if icon_id_str:
icon_id = int(icon_id_str.replace("@", "0x"), 16)
try:
icon_id = int(icon_id_str.replace("@", "0x"), 16)
resource_id = arsc.get_id(apk['packageName'], icon_id)
if resource_id:
icon_name = arsc.get_id(apk['packageName'], icon_id)[1]