From ced21d3b9884570be68e237cc301df2edc9d67c6 Mon Sep 17 00:00:00 2001 From: XANTRONIX Development Date: Sat, 9 Nov 2024 11:30:21 -0500 Subject: [PATCH] Fix a bit of indirection --- lib/nntp/tiny/db.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/nntp/tiny/db.py b/lib/nntp/tiny/db.py index f747595..1593570 100644 --- a/lib/nntp/tiny/db.py +++ b/lib/nntp/tiny/db.py @@ -31,7 +31,9 @@ class DatabaseTableCursor(): return obj def fetchone(self): - return self.__map__(self.cr.fetchone()) + row = self.cr.fetchone() + + return self.__map__(row) if row is not None else None def fetchall(self): return map(self.__map__, self.cr.fetchall())