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:
parent
5a65a44848
commit
942088bb8c
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user