Jared hace 2 años
padre
commit
f83616c3ee
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      run3.py

+ 3 - 0
run3.py

@@ -41,6 +41,9 @@ logger.fatal('[poibot]['+hname+']['+pid+']begin')
 # import pyautogui as pag
 
 def serive_create(profilepath):
+    if driver is not None:
+        driver.quit()
+        driver=None
     option = webdriver.ChromeOptions()
 
     option.add_argument('--disable-web-security')