From 4ee0a2eabaffbaad9b9178afa06d6a8851d9c11f Mon Sep 17 00:00:00 2001 From: inSilex Date: Tue, 20 Feb 2024 17:29:48 +0100 Subject: [PATCH] apkutils renamed parse_resource --- mapadroid/mad_apk/utils.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mapadroid/mad_apk/utils.py b/mapadroid/mad_apk/utils.py index 26eff6a10..55f60990e 100644 --- a/mapadroid/mad_apk/utils.py +++ b/mapadroid/mad_apk/utils.py @@ -104,8 +104,7 @@ def get_apk_info(downloaded_file: io.BytesIO) -> Tuple[Optional[str], Optional[s package_version: Optional[str] = None package_name: Optional[str] = None try: - apk: apkutils.APK = apkutils.APK.from_io(downloaded_file) - apk = apk.parse_resource() + apk = apkutils.APK.from_io(downloaded_file).parse_resource() except Exception as e: # noqa: E722 B001 logger.warning('Unable to parse APK file') logger.exception(e)