MCPcopy Index your code
hub / github.com/python/cpython / onerror

Function onerror

Lib/shutil.py:685–687  ·  view source on GitHub ↗
(err)

Source from the content-addressed store, hash-verified

683 # can't continue even if onexc hook returns
684 return
685 def onerror(err):
686 if not isinstance(err, FileNotFoundError):
687 onexc(os.scandir, err.filename, err)
688 results = os.walk(path, topdown=False, onerror=onerror, followlinks=os._walk_symlinks_as_files)
689 for dirpath, dirnames, filenames in results:
690 for name in dirnames:

Callers 1

onexcFunction · 0.70

Calls 1

onexcFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…