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):