From ff689c8c618f2cf5857fed47ea055c77f7c24e1d Mon Sep 17 00:00:00 2001 From: Howard Johnson Date: May 24 2016 21:30:06 +0000 Subject: String-type config options set to empty string shouldn't turn into None Without this, if we try to set a string-type config option to '' it becomes None. When code expecting a string uses this value, it ends up expanding out to 'None' in various places, including the plugin configuration pages. Signed-off-by: Howard Johnson --- diff --git a/ipsilon/util/config.py b/ipsilon/util/config.py index 61a4d75..07c76c0 100644 --- a/ipsilon/util/config.py +++ b/ipsilon/util/config.py @@ -133,7 +133,7 @@ class Option(Log): raise NotImplementedError def _str_export_value(self): - if self._assigned_value: + if self._assigned_value is not None: return str(self._assigned_value) return None