Skip to content

Commit

Permalink
Merge pull request ambv#18 from vain/fix-encoding-warning
Browse files Browse the repository at this point in the history
Print full path when file name decoding fails
  • Loading branch information
ambv authored Oct 29, 2016
2 parents 8cfdf0c + 4bd293f commit 8c871b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bitrot.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def list_existing_paths(directory, expected=(), ignored=(), follow_links=False):
try:
print(
"warning: cannot decode file name:",
path,
p,
file=sys.stderr,
)
except UnicodeDecodeError:
Expand Down

0 comments on commit 8c871b1

Please sign in to comment.