1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-21 11:27:38 +03:00

Fixed get_bool on windows not returning defaults in some cases

This commit is contained in:
A_D 2021-08-08 12:02:58 +02:00
parent 5a65a44848
commit 942088bb8c
No known key found for this signature in database
GPG Key ID: 4BE9EB7DF45076C4

@ -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