pdoc3 / pdoc

:snake: :arrow_right: :scroll: Auto-generate API documentation for Python projects
https://pdoc3.github.io/pdoc/
GNU Affero General Public License v3.0
1.14k stars 146 forks source link

--skip-errors flag does not work #421

Open Nathan-Harlan opened 1 year ago

Nathan-Harlan commented 1 year ago

Expected Behavior

pdoc test.py --skip-errors --html -f

Should generate an html doc and skip import errors

Actual Behavior

Import Error is raised :ModuleNotFoundError, and html file is not created

Steps to Reproduce

  1. create a basic test.py script with an import at the top that cannot be found: import does_not_exist as dne
  2. run pdoc test.py --skip-errors --html -f form the CLI
  3. remove the import line and run again to see confirm the output.

Additional info

dingetje commented 2 weeks ago

I can confirm the --skip-errors command line option is not working as expected. pdoc.exe 0.11.1