Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--skip-errors flag does not work #421

Open
Nathan-Harlan opened this issue Mar 2, 2023 · 0 comments
Open

--skip-errors flag does not work #421

Nathan-Harlan opened this issue Mar 2, 2023 · 0 comments

Comments

@Nathan-Harlan
Copy link

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

  • I could be overlooking something but I have not been able to find a way to quickly ignore these errors from the CLI even though it seems like the functionality was once added.
  • pdoc version: pdoc.exe 0.10.0
  • Thanks for the help!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant