chore: refurish python code by applying Pylint linter rules (#8322)
This commit is contained in:
@@ -37,7 +37,7 @@ class FirecrawlAuth(ApiKeyAuthBase):
|
||||
return requests.post(url, headers=headers, json=data)
|
||||
|
||||
def _handle_error(self, response):
|
||||
if response.status_code in [402, 409, 500]:
|
||||
if response.status_code in {402, 409, 500}:
|
||||
error_message = response.json().get("error", "Unknown error occurred")
|
||||
raise Exception(f"Failed to authorize. Status code: {response.status_code}. Error: {error_message}")
|
||||
else:
|
||||
|
Reference in New Issue
Block a user