diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/dock_docker.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/dock_docker.py b/app/dock_docker.py index 8a9a4fb..78f74e1 100644 --- a/app/dock_docker.py +++ b/app/dock_docker.py @@ -7,6 +7,10 @@ sql_select_Query = "select * from curieweb where done=0 LIMIT 1" mycursor.execute(sql_select_Query) records = mycursor.fetchall() +if records == []: + print("Empty Set 😳") + print("No active task, exitting gracefully") + exit(0) def email(zipArchive): import smtplib |