diff --git a/src/waybar_check_gmail/config/config.py b/src/waybar_check_gmail/config/config.py index ede2c24..e1f30e5 100644 --- a/src/waybar_check_gmail/config/config.py +++ b/src/waybar_check_gmail/config/config.py @@ -70,7 +70,7 @@ def __init__(self, fn: AnyPath): for key, val in config.items(sec): if key not in self._map[sec]: die("Unexpected config key in section {}: {}".format(sec, key)) - if self._map[sec][key] is bool: + if isinstance(self._map[sec][key], bool): self._map[sec][key] = config.getboolean(sec, key) else: self._map[sec][key] = val