Skip to content

Commit 3a10454

Browse files
committedMay 19, 2021
Log to stdout if skipping a file due to decode error
NO_JIRA
1 parent 4c65ad4 commit 3a10454

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

Diff for: ‎main/githooks.py

+1
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,7 @@ def check_eol(files):
278278
with open(filename, 'rb') as fileobj:
279279
data = fileobj.read().decode()
280280
except UnicodeDecodeError:
281+
_skip(filename, 'File is not UTF-8 encoded')
281282
continue
282283

283284
# Skip binary file

0 commit comments

Comments
 (0)
Please sign in to comment.