sphinx-contrib / sphinxcontrib-towncrier

An RST directive for injecting a Towncrier-generated changelog draft containing fragments for the unreleased (next) project version. Demo: https://ansible-pylibssh.rtfd.io/changelog. Docs: https://sphinxcontrib-towncrier.rtfd.io
https://pypi.org/p/sphinxcontrib-towncrier
BSD 3-Clause "New" or "Revised" License
19 stars 17 forks source link

Broken `fragment_base_directory` fallback in `_lookup_towncrier_fragments` #45

Closed webknjaz closed 2 years ago

webknjaz commented 3 years ago

Looking at the source I noticed a weird try/except with identical code in the fallback part at https://github.com/sphinx-contrib/sphinxcontrib-towncrier/blob/3dcf71a/src/sphinxcontrib/towncrier/__init__.py#L106-L108. I think the except block meant to use fragment_directory.