From 038e61068a3f5debfa8c015a1fe3889e2c177973 Mon Sep 17 00:00:00 2001 From: mathieui Date: Wed, 15 Aug 2018 14:27:27 +0200 Subject: [PATCH] Fix an error introduced in the last commit --- poezio/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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