Fix an error introduced in the last commit

This commit is contained in:
mathieui 2018-08-15 14:27:27 +02:00
parent 1b48f9e63d
commit 038e61068a
No known key found for this signature in database
GPG key ID: C59F84CEEFD616E3

View file

@ -205,7 +205,7 @@ class Config(RawConfigParser):
else:
res = self.getstr(option, section)
except (NoOptionError, NoSectionError, ValueError, AttributeError):
return default or ''
return default if default is not None else ''
if res is None:
return default