Print full path when file name decoding fails
This commit is contained in:
parent
5ed89d8b1a
commit
4bd293f024
@ -115,7 +115,7 @@ def list_existing_paths(directory, expected=(), ignored=(), follow_links=False):
|
|||||||
try:
|
try:
|
||||||
print(
|
print(
|
||||||
"warning: cannot decode file name:",
|
"warning: cannot decode file name:",
|
||||||
path,
|
p,
|
||||||
file=sys.stderr,
|
file=sys.stderr,
|
||||||
)
|
)
|
||||||
except UnicodeDecodeError:
|
except UnicodeDecodeError:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user