Skip to content

Commit b02f6df

Browse files
committed
Merge branch 'master' of github.com:humitos/sphinx-version-warning
2 parents 8e711bc + a93218b commit b02f6df

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

versionwarning/signals.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
JSON_DATA_FILENAME = 'versionwarning-data.json'
99

1010

11-
def generate_versionwarning_data_json(app, **kwargs):
11+
def generate_versionwarning_data_json(app, config=None, **kwargs):
1212
"""
1313
Generate the ``versionwarning-data.json`` file.
1414
@@ -23,7 +23,7 @@ def generate_versionwarning_data_json(app, **kwargs):
2323
# In Sphinx >= 1.8 we use ``config-initied`` signal which comes with the
2424
# ``config`` object and in Sphinx < 1.8 we use ``builder-initied`` signal
2525
# that doesn't have the ``config`` object and we take it from the ``app``
26-
config = kwargs.pop('config', None)
26+
config = config or kwargs.pop('config', None)
2727
if config is None:
2828
config = app.config
2929

0 commit comments

Comments
 (0)