(INFC-18949) Fix unhandled error

This commit is contained in:
suckatrash 2019-12-04 10:31:52 -08:00 committed by suckatrash
parent ffe03d581e
commit 30c7f66191
No known key found for this signature in database
GPG key ID: 2E73CDD2704137CC

View file

@ -41,9 +41,11 @@ class Base(object):
return self.value(record)
def value(self, record):
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):
return super(Boolean, self).body_class(record) \