Check row count. Make sure we have results. modified: mods/listfixdb.py
Brian Barto bartobrian@gmail.com
Mon, 28 Mar 2022 22:00:02 -0400
1 files changed,
4 insertions(+),
0 deletions(-)
jump to
M
mods/listfixdb.py
→
mods/listfixdb.py
@@ -55,6 +55,10 @@ def get_lists(self):
lists = [] rows = self.db.execute("SELECT email FROM lists") + + if (rows.rowcount == 0): + return False + for row in rows: lists.append(row[0])