From 942088bb8cc00a0bed6d9ea9d5a62c90e16c68f7 Mon Sep 17 00:00:00 2001 From: A_D Date: Sun, 8 Aug 2021 12:02:58 +0200 Subject: [PATCH] Fixed get_bool on windows not returning defaults in some cases --- config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.py b/config.py index 6b9d3016..d51a5fb1 100644 --- a/config.py +++ b/config.py @@ -588,7 +588,7 @@ class WinConfig(AbstractConfig): Implements :meth:`AbstractConfig.get_bool`. """ - res = self.get_int(key) + res = self.get_int(key, default=default) # type: ignore if res is None: return default # type: ignore # Yes it could be None, but we're _assuming_ that people gave us a default