You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When documenting a package and a module fails to be documented because of a missing/broken import, pdoc exits with 0.
IMHO pdoc should exit != 0, although partial documentation is generated.
Thanks for raising this and sorry for the slow reply! :)
I think I agree that silently swallowing an error isn't good here, we should get this fixed. In the meantime, you can specify PYTHONWARNINGS as a workaround:
Problem Description
When documenting a package and a module fails to be documented because of a missing/broken import, pdoc exits with
0
.IMHO pdoc should exit
!= 0
, although partial documentation is generated.Steps to reproduce the behavior:
Setup
__init__.py
(empty)pdoc_fail.py
pdoc_success.py
pdoc pdoc_poc -o poc_html
echo $LASTEXITCODE
-> 0System Information
pdoc: 12.0.1
Python: 3.8.10
Platform: Windows-10-10.0.19042-SP0
The text was updated successfully, but these errors were encountered: