mirror of
https://github.com/puppetlabs/infinitory.git
synced 2026-01-26 02:08:41 -05:00
Merge pull request #9 from puppetlabs/fix_unhandled_error
(DIO-1500) Fix unhandled error
This commit is contained in:
commit
2b5f4cbe80
1 changed files with 4 additions and 2 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue