summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--poezio/config.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/poezio/config.py b/poezio/config.py
index 8223e5c0..a1f3dd49 100644
--- a/poezio/config.py
+++ b/poezio/config.py
@@ -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