Skip to content

Commit cc32ceb

Browse files
committed
not in
1 parent 4af7e52 commit cc32ceb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

awswrangler/_config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,9 +224,9 @@ def _apply_type(name: str, value: Any, dtype: type[_ConfigValueType], nullable:
224224
raise exceptions.InvalidArgumentValue(
225225
f"{name} configuration does not accept a null value. Please pass {dtype}."
226226
)
227-
# Handle case where string is empty, "False" or "0"
227+
# Handle case where string is empty, "False" or "0". Anything else is True
228228
if isinstance(value, str) and dtype is bool:
229-
return value.lower() in ("false", "0", "")
229+
return value.lower() not in ("false", "0", "")
230230
try:
231231
return dtype(value) if isinstance(value, dtype) is False else value
232232
except ValueError as ex:

0 commit comments

Comments
 (0)