added graceful exit
This commit is contained in:
parent
3340d0f9f2
commit
c3366e48e8
|
@ -7,6 +7,10 @@ sql_select_Query = "select * from curieweb where done=0 LIMIT 1"
|
||||||
mycursor.execute(sql_select_Query)
|
mycursor.execute(sql_select_Query)
|
||||||
|
|
||||||
records = mycursor.fetchall()
|
records = mycursor.fetchall()
|
||||||
|
if records == []:
|
||||||
|
print("Empty Set 😳")
|
||||||
|
print("No active task, exitting gracefully")
|
||||||
|
exit(0)
|
||||||
|
|
||||||
def email(zipArchive):
|
def email(zipArchive):
|
||||||
import smtplib
|
import smtplib
|
||||||
|
|
Loading…
Reference in New Issue