Skip to content

Commit

Permalink
fix: check if not none
Browse files Browse the repository at this point in the history
  • Loading branch information
eakmanrq committed May 30, 2024
1 parent 69003b1 commit f606bad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sqlframe/base/dataframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@ def sql(
replacement_mapping: t.Dict[exp.Identifier, exp.Identifier] = {}
openai_config = (
OpenAIConfig.from_dict(openai_config)
if openai_config and isinstance(openai_config, dict)
if openai_config is not None and isinstance(openai_config, dict)
else openai_config
)

Expand Down

0 comments on commit f606bad

Please sign in to comment.