[ISS-1258][DC] adding encoding to resolve windows issues

This commit is contained in:
DanielConnelly 2026-06-02 17:02:43 +01:00
parent 1d9d4ec02f
commit 54174fd6d2
No known key found for this signature in database

View file

@ -44,7 +44,7 @@ def get_aws_secrets_from_json(json_credentials_file: str) -> set[str]:
"""
aws_credentials_file_path = os.path.expanduser(json_credentials_file)
with open(aws_credentials_file_path) as f:
with open(aws_credentials_file_path, encoding='utf-8') as f:
try:
data = json.load(f)
except json.JSONDecodeError: