From 328090ce99fab0e81e6784be2a5eba11e24b253e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Puerta=20Mart=C3=ADn?= Date: Wed, 22 May 2024 12:57:01 -0400 Subject: [PATCH] Update captcha API key write options to enhance Windows compatibility --- ninjemail/utils/webdriver_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ninjemail/utils/webdriver_utils.py b/ninjemail/utils/webdriver_utils.py index 4228d18..66db9f1 100644 --- a/ninjemail/utils/webdriver_utils.py +++ b/ninjemail/utils/webdriver_utils.py @@ -19,7 +19,7 @@ def add_capsolver_api_key(file_path, api_key): updated_content = re.sub(r'apiKey:\s*\'[^\']*\'', f'apiKey: \'{api_key}\'', content) - with open(file_path, 'w') as file: + with open(file_path, 'w', encoding='utf-8',newline='\n') as file: file.write(updated_content) def create_backgroundjs(host, port, username, password):