mirror of
https://github.com/DarkflameUniverse/NexusDashboard.git
synced 2024-11-21 21:17:23 +00:00
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 = ?',
|
||||
[lot_id],
|
||||
one=True
|
||||
)[0]
|
||||
)
|
||||
if desc in ("", None):
|
||||
desc = None
|
||||
else:
|
||||
desc = desc[0]
|
||||
if desc in ("", None):
|
||||
desc = None
|
||||
if desc:
|
||||
desc = desc.replace('"', "“")
|
||||
return desc
|
||||
|
Loading…
Reference in New Issue
Block a user