diff --git a/codeflash/api/cfapi.py b/codeflash/api/cfapi.py index 00d324db9..27e1906ac 100644 --- a/codeflash/api/cfapi.py +++ b/codeflash/api/cfapi.py @@ -179,19 +179,10 @@ def get_blocklisted_functions() -> dict[str, set[str]] | dict[str, Any]: if pr_number is None: return {} - not_found = 404 - internal_server_error = 500 - owner, repo = get_repo_owner_and_name() information = {"pr_number": pr_number, "repo_owner": owner, "repo_name": repo} try: req = make_cfapi_request(endpoint="/verify-existing-optimizations", method="POST", payload=information) - if req.status_code == not_found: - logger.debug(req.json()["message"]) - return {} - if req.status_code == internal_server_error: - logger.error(req.json()["message"]) - return {} req.raise_for_status() content: dict[str, list[str]] = req.json() except Exception as e: