Skip to content

Commit

Permalink
Fix #6046: LaTeX: TypeError is raised when invalid latex_elements…
Browse files Browse the repository at this point in the history
… given
  • Loading branch information
tk0miya committed Feb 10, 2019
1 parent b68d1d1 commit 2f7e278
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES
Expand Up @@ -17,6 +17,7 @@ Bugs fixed
----------

* LaTeX: Remove extraneous space after author names on PDF title page (refs: #6004)
* #6046: LaTeX: ``TypeError`` is raised when invalid latex_elements given

Testing
--------
Expand Down
2 changes: 1 addition & 1 deletion sphinx/builders/latex/__init__.py
Expand Up @@ -376,7 +376,7 @@ def validate_config_values(app, config):
for key in list(config.latex_elements):
if key not in DEFAULT_SETTINGS:
msg = __("Unknown configure key: latex_elements[%r]. ignored.")
logger.warning(msg % key)
logger.warning(msg % (key,))
config.latex_elements.pop(key)


Expand Down

0 comments on commit 2f7e278

Please sign in to comment.