mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-05 11:36:54 +00:00
don't stop on encoding-errors
This commit is contained in:
parent
9ce6b9facb
commit
c13d0037a4
1 changed files with 1 additions and 1 deletions
|
|
@ -76,7 +76,7 @@ def check_file_for_aws_keys(filenames, keys):
|
|||
bad_files = []
|
||||
|
||||
for filename in filenames:
|
||||
with open(filename, 'r') as content:
|
||||
with open(filename, 'r', errors='ignore') as content:
|
||||
text_body = content.read()
|
||||
for key in keys:
|
||||
# naively match the entire file, low chance of incorrect
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue