From 30c7f661917d3d5a3311ca3155a560218f457298 Mon Sep 17 00:00:00 2001 From: suckatrash Date: Wed, 4 Dec 2019 10:31:52 -0800 Subject: [PATCH] (INFC-18949) Fix unhandled error --- infinitory/cellformatter.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/infinitory/cellformatter.py b/infinitory/cellformatter.py index 07f1998..7f9c0b3 100644 --- a/infinitory/cellformatter.py +++ b/infinitory/cellformatter.py @@ -41,8 +41,10 @@ class Base(object): return self.value(record) def value(self, record): - return record[self.section].get(self.key, None) or "" - + if record[self.section] is None: + return "" + else: + return record[self.section].get(self.key, None) or "" class Boolean(Base): def body_class(self, record):