From: Simo Sorce Date: Tue, 14 Oct 2014 22:39:19 +0000 (-0400) Subject: Properly handle empty values in storage X-Git-Tag: v0.3.0~44 X-Git-Url: http://git.cascardo.info/?p=cascardo%2Fipsilon.git;a=commitdiff_plain;h=dcc545ed447feadb1ed6d53ab70311ed0d2123c3 Properly handle empty values in storage Do not return default values if an actual empty string is found in the database. Signed-off-by: Simo Sorce Reviewed-by: Patrick Uiterwijk --- diff --git a/ipsilon/util/plugin.py b/ipsilon/util/plugin.py index 9222a35..919a28d 100755 --- a/ipsilon/util/plugin.py +++ b/ipsilon/util/plugin.py @@ -154,7 +154,7 @@ class PluginObject(Log): value = None if self._config: value = self._config.get(name, None) - if not value: + if value is None: if self._options: opt = self._options.get(name, None) if opt: