Skip to content

Commit

Permalink
Update captcha API key write options to enhance Windows compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
david96182 committed May 22, 2024
1 parent bf2493c commit 328090c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ninjemail/utils/webdriver_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 328090c

Please sign in to comment.