Closed dgarcia360 closed 3 months ago
We talked about this issue on https://github.com/readthedocs/sphinx-notfound-page/pull/236#pullrequestreview-2073228098. I thought it was already fixed 🤔
Thanks @humitos! I get the build working updating to Sphinx 7.3.0.
Most likely, this is the version where _Opt
was included:
I'm happy to submit a PR changing:
if sphinx.version_info >= (7, 2)
To:
if sphinx.version_info >= (7, 3)
PR with the fix: https://github.com/readthedocs/sphinx-notfound-page/pull/241
notfound_urls_prefix
values inconf.py
are set toNone
or ``.
I'm not yet sure to understand why this wasn't catch by the test we have for this config: https://github.com/rtfd/sphinx-notfound-page/blob/ccdda4977159004aca945bdd1c249b08cf685afe/tests/test_urls.py#L162-L201
We will need to research a little more that so we can write a test case that pass/break depending on the code we are fixing.
I released 1.0.4, can you please confirm that it works as expected? 🙏🏼
Works fine, thanks!
Context
I get the following error in some Sphinx-based projects with the latest release of the extension:
More details, I'm using:
notfound_urls_prefix
values inconf.py
are set toNone
or ``.Debugging
The issue might be here: https://github.com/readthedocs/sphinx-notfound-page/commit/64ed88f43b4aa0299ec168a60ff5ecfd2d8e1bc7#diff-83bfdb6415a043b1888e7ce5240bd78ea1f236af2f7094fcb5e7702f8672aa32R274
Is trying to access
app.config.values.get("notfound_urls_prefix").default
, but I'm not sure if the default is being defined.