👽️ Updated Revanced API (#353)

This commit is contained in:
Nikhil Badyal
2023-08-29 14:30:09 +05:30
committed by GitHub
parent 6f33001963
commit 55bffcf84e
4 changed files with 16 additions and 9 deletions
+9 -5
View File
@@ -17,8 +17,8 @@ class BuilderError(Exception):
return self.message
class APKMirrorIconScrapError(BuilderError):
"""Exception raised when the icon cannot be scraped from apkmirror."""
class ScrapingError(BuilderError):
"""Exception raised when the url cannot be scraped."""
def __init__(self: Self, *args: Any, **kwargs: Any) -> None:
"""Initialize the APKMirrorIconScrapFailure exception.
@@ -33,15 +33,19 @@ class APKMirrorIconScrapError(BuilderError):
self.url = kwargs.get("url", None)
class APKComboIconScrapError(APKMirrorIconScrapError):
class APKMirrorIconScrapError(ScrapingError):
"""Exception raised when the icon cannot be scraped from apkmirror."""
class APKComboIconScrapError(ScrapingError):
"""Exception raised when the icon cannot be scraped from apkcombo."""
class APKPureIconScrapError(APKMirrorIconScrapError):
class APKPureIconScrapError(ScrapingError):
"""Exception raised when the icon cannot be scraped from apkpure."""
class APKMonkIconScrapError(APKMirrorIconScrapError):
class APKMonkIconScrapError(ScrapingError):
"""Exception raised when the icon cannot be scraped from apkmonk."""