From 9e84485f3a890645652a3331e939e3a7b405808f Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Mon, 5 Sep 2016 13:19:35 +0200 Subject: [PATCH] Replace Nones with UNKNOWN instead of NaN Signed-off-by: Michael Tremer --- src/collecty/plugins/base.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/collecty/plugins/base.py b/src/collecty/plugins/base.py index 5b13044..d937a95 100644 --- a/src/collecty/plugins/base.py +++ b/src/collecty/plugins/base.py @@ -214,17 +214,14 @@ class Plugin(object, metaclass=PluginRegistration): if not isinstance(result, tuple) and not isinstance(result, list): return result - # Replace all Nones by NaN + # Replace all Nones by UNKNOWN s = [] for e in result: if e is None: - e = "NaN" + e = "U" - # Format as string - e = "%s" % e - - s.append(e) + s.append("%s" % e) return ":".join(s) -- 2.39.2