Commit fbe1813
committed
fix: handle missing directories in docs-build test
The docs-build.py checker was failing with FileNotFoundError when trying
to copy directories and files that don't exist in the repository (such as
'bin', 'lib', etc.). These directories are only present after cloning
ansible-core using 'nox -s clone-core'.
This fix adds existence checks before attempting to copy directories and
files, making the test more robust and preventing errors when running in
environments where ansible-core hasn't been cloned yet.1 parent 06716c7 commit fbe1813
1 file changed
+6
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
38 | 40 | | |
39 | 41 | | |
40 | | - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
41 | 45 | | |
42 | 46 | | |
43 | 47 | | |
| |||
0 commit comments