sphinxcontrib-towncrier
sphinxcontrib-towncrier copied to clipboard
Error in get_outdated_docs when directory is not specified
trafficstars
Towncrier uses the directory newsfragments by default. However, if directory is not defined in the towncrier config, this plugin will fail with the following error:
Extension error (sphinxcontrib.towncrier.ext):
Handler <bound method TowncrierDraftEntriesEnvironmentCollector.get_outdated_docs of <sphinxcontrib.towncrier.ext.TowncrierDraftEntriesEnvironmentCollector object at 0x107773750>> for event 'env-get-outdated' threw an exception (exception: unsupported operand type(s) for /: 'PosixPath' and 'NoneType')
Adding directory = "newsfragments" to the config works around the error.
This extension should support the same defaults as towncrier.