fix nulltype object error
This commit is contained in:
parent
819d51c68a
commit
e622c44042
@ -268,9 +268,13 @@ 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):
|
if desc in ("", None):
|
||||||
desc = None
|
desc = None
|
||||||
|
else:
|
||||||
|
desc = desc[0]
|
||||||
|
if desc in ("", None):
|
||||||
|
desc = None
|
||||||
if desc:
|
if desc:
|
||||||
desc = desc.replace('"', "“")
|
desc = desc.replace('"', "“")
|
||||||
return desc
|
return desc
|
||||||
|
Loading…
Reference in New Issue
Block a user