From 95f1ce4d89351c8e97237c5b7d8a71ae49e7e4b3 Mon Sep 17 00:00:00 2001 From: XANTRONIX Development Date: Sat, 9 Nov 2024 12:13:26 -0500 Subject: [PATCH] Additional guard clause --- lib/nntp/tiny/db.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/nntp/tiny/db.py b/lib/nntp/tiny/db.py index 8744064..2524cd2 100644 --- a/lib/nntp/tiny/db.py +++ b/lib/nntp/tiny/db.py @@ -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