Commit dc01febd authored by bliss administrator's avatar bliss administrator

config/settings.py: read decorator: do not do type conversion if value is None

parent ce70d746
Pipeline #1233 failed with stages
in 6 minutes and 45 seconds
......@@ -68,7 +68,8 @@ def read_decorator(func):
tmp.update(value)
value = tmp
else:
value = self._read_type_conversion(value)
if value is not None:
value = self._read_type_conversion(value)
if value is None:
if hasattr(self,'_default_value'):
value = self._default_value
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment