reformat code

pull/19948/head
Amir Mohsen 1 year ago
parent 14c2dceaec
commit 2f5aa21e6e

@ -59,7 +59,6 @@ class WaterCrawlAPIClient(BaseAPIClient):
yield data yield data
def process_response(self, response: Response) -> dict | bytes | list | None | Generator: def process_response(self, response: Response) -> dict | bytes | list | None | Generator:
if response.status_code == 401: if response.status_code == 401:
raise WaterCrawlAuthenticationError(response) raise WaterCrawlAuthenticationError(response)

@ -26,7 +26,7 @@ class WaterCrawlPermissionError(WaterCrawlBadRequestError):
def __str__(self): def __str__(self):
return f"You are exceeding your WaterCrawl API limits. {self.message}" return f"You are exceeding your WaterCrawl API limits. {self.message}"
class WaterCrawlAuthenticationError(WaterCrawlBadRequestError):
class WaterCrawlAuthenticationError(WaterCrawlBadRequestError):
def __str__(self): def __str__(self):
return "WaterCrawl API key is invalid or expired. Please check your API key and try again." return "WaterCrawl API key is invalid or expired. Please check your API key and try again."

Loading…
Cancel
Save