From 3588bac8b74eaf1c4fd0cce9c3f297c75d0edb93 Mon Sep 17 00:00:00 2001 From: Kevin Turcios Date: Wed, 21 May 2025 16:06:35 -0400 Subject: [PATCH] cf-api --- codeflash/api/cfapi.py | 9 --------- 1 file changed, 9 deletions(-) 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: