Skip to content

Commit 54174fd

Browse files
[ISS-1258][DC] adding encoding to resolve windows issues
1 parent 1d9d4ec commit 54174fd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pre_commit_hooks/detect_aws_credentials.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def get_aws_secrets_from_json(json_credentials_file: str) -> set[str]:
4444
"""
4545
aws_credentials_file_path = os.path.expanduser(json_credentials_file)
4646

47-
with open(aws_credentials_file_path) as f:
47+
with open(aws_credentials_file_path, encoding='utf-8') as f:
4848
try:
4949
data = json.load(f)
5050
except json.JSONDecodeError:

0 commit comments

Comments
 (0)