You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
self.print_and_log(f"The task is completed, the browser will exit automatically and the temporary user directory will be cleaned up after {quitWaitTime} seconds, the waiting time can be set in the save task dialog.")
561
560
time.sleep(quitWaitTime)
562
-
self.browser.quit()
561
+
try:
562
+
self.browser.quit()
563
+
except:
564
+
pass
563
565
self.print_and_log("正在清理临时用户目录……|Cleaning up temporary user directory...")
# print("Passing the Cloudflare verification mode is sometimes unstable. If the verification fails, you need to try again every few minutes, or you can change to a new user information folder and then execute the task.")
print(f"Use local user data folder: {tmp_user_data_folder}")
2324
+
print(f"使用本地用户信息目录: {tmp_user_data_folder}")
2325
+
else:
2326
+
options.add_argument(
2327
+
f'--user-data-dir={c.user_folder}')
2328
+
print(f"Use specifed user data folder: {c.user_folder}", ", please note if you are using docker, this user folder path should be the path inside the docker container.")
0 commit comments