mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 06:50:29 +03:00
parent
ba854cbc0f
commit
d9171f11e0
2 changed files with 17 additions and 2 deletions
|
|
@ -1448,8 +1448,9 @@ def scan_apk_androguard(apk, apkfile):
|
|||
logging.error(_("Failed to get apk information, skipping {path}")
|
||||
.format(path=apkfile))
|
||||
raise BuildException(_("Invalid APK"))
|
||||
except FileNotFoundError:
|
||||
logging.error(_("Could not open apk file for analysis"))
|
||||
except (FileNotFoundError, zipfile.BadZipFile) as e:
|
||||
logging.error(_("Could not open APK {path} for analysis: ").format(path=apkfile)
|
||||
+ str(e))
|
||||
raise BuildException(_("Invalid APK"))
|
||||
|
||||
apk['packageName'] = apkobject.get_package()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue