X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/efc62f41304bf4bd783018f6008f3472f4c4ad92..5806688fd0986ae297d9c500382585cecbaa72d3:/forum/settings/base.py?ds=inline diff --git a/forum/settings/base.py b/forum/settings/base.py index f640a7c..e160970 100644 --- a/forum/settings/base.py +++ b/forum/settings/base.py @@ -66,10 +66,12 @@ class BaseSetting(object): self.set_value(self.default) def _parse(self, value): - try: - return self.base_type(value) - except: - return value + if not isinstance(value, self.base_type): + try: + return self.base_type(value) + except: + pass + return value class Setting(object):