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.12k stars 145 forks source link

Pdoc fails if a base class uses a NotImplementedError #353

Open kjczarne opened 3 years ago

kjczarne commented 3 years ago

Expected Behavior

No error thrown. I have a base class in a lib that I want to document and some of the methods are deliberately marked as NotImplementedError.

Actual Behavior

_getmembers_all catches only AttributeError. It should also catch NotImplementedError

Steps to Reproduce

  1. Take any class in an existing library and insert a raise statement for a NotImplementedError
  2. Run pdoc --html some_lib where some_lib is the name of the aforementioned lib.

Additional info