From e622c44042d68a133b69ae61e6b51c39f347c3b9 Mon Sep 17 00:00:00 2001 From: Aaron Kimbre Date: Sat, 19 Feb 2022 21:48:36 -0600 Subject: [PATCH] fix nulltype object error --- app/luclient.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/luclient.py b/app/luclient.py index d544ce9..25262e3 100644 --- a/app/luclient.py +++ b/app/luclient.py @@ -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