Unverified Commit 038e6106 authored by mathieui's avatar mathieui

Fix an error introduced in the last commit

parent 1b48f9e6
......@@ -205,7 +205,7 @@ class Config(RawConfigParser):
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
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