mirror of
https://github.com/sotam0316/docker-py-revanced.git
synced 2026-04-24 19:38:36 +09:00
🥅 Exception handling (#290)
This commit is contained in:
@@ -6,7 +6,7 @@ from loguru import logger
|
||||
|
||||
from src.config import RevancedConfig
|
||||
from src.downloader.factory import DownloaderFactory
|
||||
from src.exceptions import AppNotFound, PatchesJsonFailed, PatchingFailed
|
||||
from src.exceptions import AppNotFound, PatchesJsonLoadFailed, PatchingFailed
|
||||
from src.parser import Parser
|
||||
from src.patches import Patches
|
||||
from src.utils import check_java, extra_downloads
|
||||
@@ -38,7 +38,7 @@ def main() -> None:
|
||||
parser.patch_app(app)
|
||||
except AppNotFound as e:
|
||||
logger.info(f"Invalid app requested to build {e}")
|
||||
except PatchesJsonFailed:
|
||||
except PatchesJsonLoadFailed:
|
||||
logger.exception("Patches.json not found")
|
||||
except PatchingFailed as e:
|
||||
logger.exception(e)
|
||||
|
||||
Reference in New Issue
Block a user