Skip to content

Commit

Permalink
Merge pull request #37809 from iarspider/patch-5
Browse files Browse the repository at this point in the history
Update cppCommentSkipper: don't log the exact error
  • Loading branch information
cmsbuild authored May 5, 2022
2 parents 25cd8e3 + 8ca870a commit ae61a8e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def filterFile(file): #ifstream& input)
try:
lines = open(file).readlines()
except UnicodeDecodeError as e:
print("CppCommentSkipper: WARNING: Invalid UTF-8 sequence in {0}: {1}".format(file, e.message))
print("CppCommentSkipper: WARNING: Invalid UTF-8 sequence in {0}".format(file))
lines = open(file, errors='replace').readlines()
commentStage = False

Expand Down

0 comments on commit ae61a8e

Please sign in to comment.