🥅 Exception handling (#290)

This commit is contained in:
Nikhil Badyal
2023-08-17 21:09:42 +05:30
committed by GitHub
parent 5bffa4c79c
commit 02e550585c
11 changed files with 105 additions and 35 deletions
+2 -2
View File
@@ -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)