Skip to content

Commit 48f201a

Browse files
author
Tom McCormick
committed
fix linter
1 parent f4d16f2 commit 48f201a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pyiceberg/utils/config.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,5 +183,8 @@ def get_bool(self, key: str) -> Optional[bool]:
183183

184184
def get_str(self, key: str) -> Optional[str]:
185185
if (val := self.config.get(key)) is not None:
186-
return val
186+
if isinstance(val, str):
187+
return val
188+
else:
189+
raise ValueError(f"{key} should be a string or left unset. Current value: {val}")
187190
return None

0 commit comments

Comments
 (0)