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