mirror of
https://github.com/puppetlabs/infinitory.git
synced 2026-01-26 02:08:41 -05:00
(INFC-18949) Fix unhandled error
This commit is contained in:
parent
ffe03d581e
commit
30c7f66191
1 changed files with 4 additions and 2 deletions
|
|
@ -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) \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue