@@ -35,6 +35,9 @@ cursor=db.query("select url from seo_whitelist where cust='啟翔'")
for c in cursor:
url_white.append(c['url'])
print(url_white)
+if len(url_white) <=0:
+ print('url_white loading failed')
+ sys.exit()
#sys.exit()
#db = dataset.connect('mysql://choozmo:pAssw0rd@db.ptt.cx:3306/seo?charset=utf8mb4')