Skip to content

Commit 36151d0

Browse files
authored
Merge pull request #773 from codeflash-ai/fix-dict-get
Avoid `TypeError: dict.get() takes no keyword arguments` when using env variables with `codeflash optimize`
2 parents 2d886e8 + c6ddf98 commit 36151d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

codeflash/api/cfapi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
from packaging import version
2828

29-
if os.environ.get("CODEFLASH_CFAPI_SERVER", default="prod").lower() == "local":
29+
if os.environ.get("CODEFLASH_CFAPI_SERVER", "prod").lower() == "local":
3030
CFAPI_BASE_URL = "http://localhost:3001"
3131
logger.info(f"Using local CF API at {CFAPI_BASE_URL}.")
3232
console.rule()

0 commit comments

Comments
 (0)