mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix #5007: sphinx-build crashes when error log contains a "%" character
This commit is contained in:
parent
1b5bc55956
commit
9d1d48fb60
1
CHANGES
1
CHANGES
@ -40,6 +40,7 @@ Bugs fixed
|
||||
* #4980: latex: Explicit labels on code blocks are duplicated
|
||||
* #4919: node.asdom() crashes if toctree has :numbered: option
|
||||
* #4914: autodoc: Parsing error when using dataclasses without default values
|
||||
* #5007: sphinx-build crashes when error log contains a "%" character
|
||||
|
||||
Testing
|
||||
--------
|
||||
|
@ -373,7 +373,7 @@ class WarningIsErrorFilter(logging.Filter):
|
||||
location = getattr(record, 'location', '')
|
||||
try:
|
||||
message = record.msg % record.args
|
||||
except TypeError:
|
||||
except (TypeError, ValueError):
|
||||
message = record.msg # use record.msg itself
|
||||
|
||||
if location:
|
||||
|
Loading…
Reference in New Issue
Block a user