Skip to content

Commit

Permalink
Merge 186bad3 into 4b08781
Browse files Browse the repository at this point in the history
  • Loading branch information
samuela committed Jul 1, 2019
2 parents 4b08781 + 186bad3 commit b910d36
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions yapf/yapflib/yapf_api.py
Expand Up @@ -202,6 +202,12 @@ def ReadFile(filename, logger=None):
if logger:
logger(err)
raise
except UnicodeDecodeError as err: # pragma: no cover
if logger:
logger("Could not parse {}! Consider excluding this file with --exclude."
.format(filename))
logger(err)
raise


def _SplitSemicolons(uwlines):
Expand Down

0 comments on commit b910d36

Please sign in to comment.