Skip to content

--skip-errors flag does not work #421

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

Closed
Nathan-Harlan opened this issue Mar 2, 2023 · 1 comment
Closed

--skip-errors flag does not work #421

Nathan-Harlan opened this issue Mar 2, 2023 · 1 comment
Labels
bug Something isn't working

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!
@dingetje
Copy link

dingetje commented Nov 8, 2024

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

@kernc kernc added the bug Something isn't working label Nov 26, 2024
@kernc kernc closed this as completed in e319570 Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

3 participants