fix nulltype object error

This commit is contained in:
Aaron Kimbre 2022-02-19 21:48:36 -06:00
parent 819d51c68a
commit e622c44042

View File

@ -268,7 +268,11 @@ def register_luclient_jinja_helpers(app):
'select description from Objects where id = ?',
[lot_id],
one=True
)[0]
)
if desc in ("", None):
desc = None
else:
desc = desc[0]
if desc in ("", None):
desc = None
if desc: