Skip to content

Commit 4ce2b54

Browse files
Update config.py
1 parent 1a00a4f commit 4ce2b54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pinecone/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ def _preprocess_and_validate_config(self, config: dict) -> dict:
138138
"""
139139
# general preprocessing and filtering
140140
# result = {k.strip(): v.strip() for k, v in config.items() if v is not None}
141-
result = {k: v for k, v in result.items() if k in ConfigBase._fields}
141+
result = {k: v for k, v in config.items() if k in ConfigBase._fields}
142142
result.pop('environment', None)
143143
# validate api key
144144
api_key = result.get('api_key')

0 commit comments

Comments
 (0)