From 9ea830680667245575787c13cbecc39480eeea13 Mon Sep 17 00:00:00 2001 From: XANTRONIX Development Date: Wed, 4 Dec 2024 17:22:33 -0500 Subject: [PATCH] Use default attribute value of None when attributes are missing --- 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 e72dec0..bd3dfde 100644 --- a/lib/nntp/tiny/db.py +++ b/lib/nntp/tiny/db.py @@ -104,7 +104,7 @@ class Database(): for column in table.columns: if column != table.key: - values.append(getattr(obj, column)) + values.append(getattr(obj, column, None)) cr = self.db.execute(sql, values)