🧹 Cleanup

This commit is contained in:
Nikhil Badyal
2023-08-10 21:34:49 +05:30
parent 39d5009cc7
commit acc3a2dae7
8 changed files with 19 additions and 25 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ from loguru import logger
from selectolax.lexbor import LexborHTMLParser
from src.downloader.download import Downloader
from src.utils import AppNotFound
from src.exceptions import AppNotFound
class ApkMirror(Downloader):
+1 -1
View File
@@ -4,7 +4,7 @@ from typing import Any
from loguru import logger
from src.downloader.download import Downloader
from src.utils import AppNotFound
from src.exceptions import AppNotFound
class ApkPure(Downloader):
+1 -1
View File
@@ -5,7 +5,7 @@ from loguru import logger
from selectolax.lexbor import LexborHTMLParser
from src.downloader.download import Downloader
from src.utils import AppNotFound
from src.exceptions import AppNotFound
class ApkSos(Downloader):
+1 -1
View File
@@ -6,7 +6,7 @@ from loguru import logger
from selectolax.lexbor import LexborHTMLParser
from src.downloader.download import Downloader
from src.utils import AppNotFound
from src.exceptions import AppNotFound
class UptoDown(Downloader):
+12 -6
View File
@@ -4,13 +4,19 @@ class APKMirrorScrapperFailure(Exception):
pass
class ExtraAssetsFailure(Exception):
"""Failed to scrap icon from apkmirror."""
pass
class PatchingFailed(Exception):
"""Patching Failed."""
pass
class AppNotFound(ValueError):
"""Not a valid Revanced App."""
pass
class PatchesJsonFailed(ValueError):
"""Patches failed."""
pass
+1 -1
View File
@@ -7,7 +7,7 @@ from loguru import logger
from src.app import APP
from src.config import RevancedConfig
from src.utils import AppNotFound, PatchesJsonFailed
from src.exceptions import AppNotFound, PatchesJsonFailed
class Patches(object):
-12
View File
@@ -38,18 +38,6 @@ def update_changelog(name: str, response: Dict[str, str]) -> None:
file1.write(change_log)
class AppNotFound(ValueError):
"""Not a valid Revanced App."""
pass
class PatchesJsonFailed(ValueError):
"""Patches failed."""
pass
def handle_response(response: Response) -> None:
"""Handle Get Request Response."""
response_code = response.status_code