Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sphinx-doc/sphinx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2020-04-08 18:17:35 +0300
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2020-04-08 18:17:37 +0300
commit1ca220762b7d13697d9c8354db80493322f724d8 (patch)
tree66c6212e5e54feb2c3e19a6d4b25aab6e93deb11 /sphinx/util/logging.py
parent2def1fc70410bafa1120e69c6cbf9c4ebe819515 (diff)
Fix #7423: crashed when giving a non-string object to logger
Diffstat (limited to 'sphinx/util/logging.py')
-rw-r--r--sphinx/util/logging.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/util/logging.py b/sphinx/util/logging.py
index fbf161ec0..53053faaf 100644
--- a/sphinx/util/logging.py
+++ b/sphinx/util/logging.py
@@ -412,7 +412,7 @@ class WarningIsErrorFilter(logging.Filter):
message = record.msg # use record.msg itself
if location:
- raise SphinxWarning(location + ":" + message)
+ raise SphinxWarning(location + ":" + str(message))
else:
raise SphinxWarning(message)
else: