summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2018-08-15 14:27:27 +0200
committermathieui <mathieui@mathieui.net>2018-08-15 14:30:08 +0200
commit038e61068a3f5debfa8c015a1fe3889e2c177973 (patch)
treebb6f04c4c1525ec6cfcca9c13318bc5d1fc61f2e
parent1b48f9e63d58a9278aef37c533686b5904edd616 (diff)
downloadpoezio-038e61068a3f5debfa8c015a1fe3889e2c177973.tar.gz
poezio-038e61068a3f5debfa8c015a1fe3889e2c177973.tar.bz2
poezio-038e61068a3f5debfa8c015a1fe3889e2c177973.tar.xz
poezio-038e61068a3f5debfa8c015a1fe3889e2c177973.zip
Fix an error introduced in the last commit
-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