fix nulltype object error
This commit is contained in:
parent
819d51c68a
commit
e622c44042
@ -268,7 +268,11 @@ def register_luclient_jinja_helpers(app):
|
|||||||
'select description from Objects where id = ?',
|
'select description from Objects where id = ?',
|
||||||
[lot_id],
|
[lot_id],
|
||||||
one=True
|
one=True
|
||||||
)[0]
|
)
|
||||||
|
if desc in ("", None):
|
||||||
|
desc = None
|
||||||
|
else:
|
||||||
|
desc = desc[0]
|
||||||
if desc in ("", None):
|
if desc in ("", None):
|
||||||
desc = None
|
desc = None
|
||||||
if desc:
|
if desc:
|
||||||
|
Loading…
Reference in New Issue
Block a user