Additional guard clause
This commit is contained in:
parent
4be29606ad
commit
95f1ce4d89
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue