Additional guard clause

This commit is contained in:
XANTRONIX Development 2024-11-09 12:13:26 -05:00
parent 4be29606ad
commit 95f1ce4d89

View file

@ -127,4 +127,4 @@ class Database():
cr = self.db.execute(sql, list(values.values()))
row = cr.fetchone()
return row[0]
return row[0] if row is not None else None