mirror of
https://github.com/sotam0316/docker-py-revanced.git
synced 2026-04-25 03:48:37 +09:00
🥅 Exception handling (#290)
This commit is contained in:
@@ -8,7 +8,7 @@ from loguru import logger
|
||||
|
||||
from src.config import RevancedConfig
|
||||
from src.downloader.download import Downloader
|
||||
from src.exceptions import PatchingFailed
|
||||
from src.exceptions import DownloadFailure
|
||||
from src.utils import handle_github_response, update_changelog
|
||||
|
||||
|
||||
@@ -84,7 +84,9 @@ class Github(Downloader):
|
||||
try:
|
||||
filter_pattern = re.compile(asset_filter)
|
||||
except re.error as e:
|
||||
raise PatchingFailed("Invalid regex pattern provided.") from e
|
||||
raise DownloadFailure(
|
||||
f"Invalid regex {asset_filter} pattern provided."
|
||||
) from e
|
||||
for asset in assets:
|
||||
assets_url = asset["browser_download_url"]
|
||||
assets_name = asset["name"]
|
||||
|
||||
Reference in New Issue
Block a user