diff --git a/util/imapfetch.py b/util/imapfetch.py index 3616062c..08b6649f 100755 --- a/util/imapfetch.py +++ b/util/imapfetch.py @@ -114,6 +114,9 @@ def main(): row = cursor.fetchone() if row: (server, user, password) = row + else: + print("Nothing to read from import table") + sys.exit(0) except dbapi.DatabaseError as e: print("Error %s" % e)