Skip non-files when building repomap #174

This commit is contained in:
Paul Gauthier 2023-08-08 12:02:40 -03:00
parent 500a22c306
commit f26e40d48e
2 changed files with 4 additions and 0 deletions

View file

@ -307,6 +307,10 @@ class RepoMap:
self.cache_missing = False self.cache_missing = False
for fname in fnames: for fname in fnames:
if not Path(fname).is_file():
self.io.tool_error(f"Repo-map can't include {fname}")
continue
# dump(fname) # dump(fname)
rel_fname = os.path.relpath(fname, self.root) rel_fname = os.path.relpath(fname, self.root)

0
hello.py Normal file
View file