mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-06-29 06:00:45 +00:00
[ISS-1258][DC] adding encoding to resolve windows issues
This commit is contained in:
parent
1d9d4ec02f
commit
54174fd6d2
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue