diff --git a/src/exceptions.py b/src/exceptions.py index aebf5d1..8e0fc31 100644 --- a/src/exceptions.py +++ b/src/exceptions.py @@ -31,7 +31,7 @@ class ScrapingError(BuilderError): url (str, optional): The URL of the failed icon scraping. Defaults to None. """ super().__init__(*args) - self.url = kwargs.get("url", None) + self.url = kwargs.get("url") def __str__(self: Self) -> str: """Exception message.""" @@ -68,7 +68,7 @@ class DownloadError(BuilderError): url (str, optional): The URL of the failed icon scraping. Defaults to None. """ super().__init__(*args) - self.url = kwargs.get("url", None) + self.url = kwargs.get("url") def __str__(self: Self) -> str: """Exception message.""" @@ -125,7 +125,7 @@ class PatchesJsonLoadError(BuilderError): file_name (str, optional): The name of json file. Defaults to None. """ super().__init__(*args) - self.file_name = kwargs.get("file_name", None) + self.file_name = kwargs.get("file_name") def __str__(self: Self) -> str: """Exception message."""