Jason 1 anno fa
parent
commit
633478a76a
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  1. 3 0
      website_clickjobs/type-V/_execute.py

+ 3 - 0
website_clickjobs/type-V/_execute.py

@@ -126,9 +126,12 @@ def process_one(term, tgt, n, sr, se):
             time.sleep(randint(20,40)) #adjustable
         
         driver.quit()
+        db.close()
         print('completed')
     except:
         traceback.print_exc()
+        db.close()
+        driver.quit()
 
     #db_local.close()