From 2c757db383748d1ad4aaedec5b172066b2ff8cd4 Mon Sep 17 00:00:00 2001 From: Abdel Jaidi Date: Tue, 17 Sep 2024 13:14:56 +0100 Subject: [PATCH] fix: add missing empty case --- awswrangler/_config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awswrangler/_config.py b/awswrangler/_config.py index 82701b505..5d587400a 100644 --- a/awswrangler/_config.py +++ b/awswrangler/_config.py @@ -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