Skip to content

Commit

Permalink
fix: add missing empty case
Browse files Browse the repository at this point in the history
  • Loading branch information
jaidisido committed Sep 17, 2024
1 parent 47bf607 commit 2c757db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion awswrangler/_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ def _is_null(value: _ConfigValueType | None) -> bool:
@staticmethod
def _cast_bool(name: str, value: str) -> bool:
_true = ("true", "1")
_false = ("false", "0")
_false = ("false", "0", "")
if value not in _true + _false:
raise exceptions.InvalidArgumentValue(f"{name} configuration only accepts True/False or 0/1.")
return value in _true
Expand Down

0 comments on commit 2c757db

Please sign in to comment.