💚 Fixed Branch prefix for bugs

This commit is contained in:
Nikhil Badyal
2023-08-09 22:15:09 +05:30
parent 1f83406cb8
commit b1af206dad
8 changed files with 118 additions and 21 deletions
+4
View File
@@ -6,6 +6,7 @@ from loguru import logger
from src.config import RevancedConfig
from src.downloader.factory import DownloaderFactory
from src.exceptions import PatchingFailed
from src.parser import Parser
from src.patches import Patches
from src.utils import AppNotFound, PatchesJsonFailed, check_java, extra_downloads
@@ -16,6 +17,7 @@ def main() -> None:
from src.app import APP
env = Env()
env.read_env()
config = RevancedConfig(env)
extra_downloads(config)
check_java(config.dry_run)
@@ -38,6 +40,8 @@ def main() -> None:
logger.info(f"Invalid app requested to build {e}")
except PatchesJsonFailed:
logger.exception("Patches.json not found")
except PatchingFailed as e:
logger.exception(e)
except Exception as e:
logger.exception(f"Failed to build {app} because of {e}")