mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-25 06:50:12 +01:00
imapfetch.py shall quit if nothing in the import table
Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
parent
68f72d0784
commit
96dbde7cba
@ -114,6 +114,9 @@ def main():
|
|||||||
row = cursor.fetchone()
|
row = cursor.fetchone()
|
||||||
if row:
|
if row:
|
||||||
(server, user, password) = row
|
(server, user, password) = row
|
||||||
|
else:
|
||||||
|
print("Nothing to read from import table")
|
||||||
|
sys.exit(0)
|
||||||
|
|
||||||
except dbapi.DatabaseError as e:
|
except dbapi.DatabaseError as e:
|
||||||
print("Error %s" % e)
|
print("Error %s" % e)
|
||||||
|
Loading…
Reference in New Issue
Block a user