diff --git a/gridplayer/settings.py b/gridplayer/settings.py index 3f69bd2..62bb8d7 100644 --- a/gridplayer/settings.py +++ b/gridplayer/settings.py @@ -75,7 +75,10 @@ def get(self, setting): if issubclass(setting_type, Enum): setting_value = self.settings.value(setting, _default_settings[setting]) if isinstance(setting_value, str): - return setting_type(setting_value) + try: + return setting_type(setting_value) + except ValueError: + return _default_settings[setting] return self.settings.value( setting, _default_settings[setting], type=setting_type