imapfetch.py shall quit if nothing in the import table

Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
Janos SUTO 2020-10-26 23:10:48 +01:00
parent 68f72d0784
commit 96dbde7cba

View File

@ -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)