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,8 +41,10 @@ class Base(object):
|
||||||
return self.value(record)
|
return self.value(record)
|
||||||
|
|
||||||
def value(self, 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):
|
class Boolean(Base):
|
||||||
def body_class(self, record):
|
def body_class(self, record):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue