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

some parts of androguard 4.x use loguru instead of logging

This commit is contained in:
Hans-Christoph Steiner 2024-04-24 15:45:15 +02:00
parent 1c84f63247
commit ef4ec74882

View File

@ -2654,6 +2654,13 @@ def _androguard_logging_level(level=logging.ERROR):
):
logging.getLogger(name).setLevel(level)
# some parts of androguard 4.x use loguru instead of logging
try:
from loguru import logger
logger.remove()
except ImportError:
pass
def get_androguard_APK(apkfile):
try: