|
@@ -123,8 +123,10 @@ def run_once(url):
|
|
if driver is None:
|
|
if driver is None:
|
|
print('driver is none')
|
|
print('driver is none')
|
|
return
|
|
return
|
|
- process_query(url)
|
|
|
|
-
|
|
|
|
|
|
+ try:
|
|
|
|
+ process_query(url)
|
|
|
|
+ except:
|
|
|
|
+ print('process_query exception')
|
|
|
|
|
|
db = dataset.connect('mysql://choozmo:pAssw0rd@db.ptt.cx:3306/seo?charset=utf8mb4')
|
|
db = dataset.connect('mysql://choozmo:pAssw0rd@db.ptt.cx:3306/seo?charset=utf8mb4')
|
|
cursor=db.query('select category from cur_category')
|
|
cursor=db.query('select category from cur_category')
|