We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f4d16f2 commit 48f201aCopy full SHA for 48f201a
pyiceberg/utils/config.py
@@ -183,5 +183,8 @@ def get_bool(self, key: str) -> Optional[bool]:
183
184
def get_str(self, key: str) -> Optional[str]:
185
if (val := self.config.get(key)) is not None:
186
- return val
+ if isinstance(val, str):
187
+ return val
188
+ else:
189
+ raise ValueError(f"{key} should be a string or left unset. Current value: {val}")
190
return None
0 commit comments