ensure we convert path in warning or py2.6 breaks (#75413) (#75414)

(cherry picked from commit 75e6bdb579)
This commit is contained in:
Brian Coca
2021-08-05 17:08:17 -04:00
committed by GitHub
parent 2023363b39
commit bb993dc877
2 changed files with 3 additions and 1 deletions

View File

@ -0,0 +1,2 @@
bugfixes:
- find action, correctly convert path to text when warning about skiping.

View File

@ -493,7 +493,7 @@ def main():
if not params['recurse']:
break
except Exception as e:
warn = "Skipped '%s' path due to this access issue: %s\n" % (npath, to_text(e))
warn = "Skipped '%s' path due to this access issue: %s\n" % (to_text(npath), to_text(e))
module.warn(warn)
msg += warn