🔊 Add url to print statement

This commit is contained in:
Nikhil Badyal
2024-04-12 17:31:53 +05:30
parent 4a08e7affe
commit bac43d4ce7
+5
View File
@@ -33,6 +33,11 @@ class ScrapingError(BuilderError):
super().__init__(*args) super().__init__(*args)
self.url = kwargs.get("url", None) self.url = kwargs.get("url", None)
def __str__(self: Self) -> str:
"""Exception message."""
base_message = super().__str__()
return f"Message - {base_message} Url - {self.url}"
class APKMirrorIconScrapError(ScrapingError): class APKMirrorIconScrapError(ScrapingError):
"""Exception raised when the icon cannot be scraped from apkmirror.""" """Exception raised when the icon cannot be scraped from apkmirror."""