Fixed get_bool on windows not returning defaults in some cases

This commit is contained in:
A_D committed 2021-08-08 12:02:58 +02:00
1 parent 5a65a44848
commit 942088bb8c
1 file changed
+1 -1
+1 -1
View File
@@ -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