all repos — listfix @ 1cd87ef6ae3e9178a10119f14bc5ce21585dee8e

Postfix Mailing List Software; Maintained on behalf the of Agency Economy Incorporated NFP.

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
commit

1cd87ef6ae3e9178a10119f14bc5ce21585dee8e

parent

7f905b6d8d724e900bcde7f26cb381ccf050571e

1 files changed, 4 insertions(+), 0 deletions(-)

jump to
M mods/listfixdb.pymods/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])