summaryrefslogtreecommitdiffstats
path: root/Lib/logging/__init__.py
diff options
context:
space:
mode:
authorEric Larson <larson.eric.d@gmail.com>2020-09-25 18:08:50 (GMT)
committerGitHub <noreply@github.com>2020-09-25 18:08:50 (GMT)
commit9fdb76c34c44ac27531229b72aa2aa424d10e846 (patch)
tree8d6105304570d3ffae7160a581068b8a0665a969 /Lib/logging/__init__.py
parent02d126aa09d96d03dcf9c5b51c858ce5ef386601 (diff)
downloadcpython-9fdb76c34c44ac27531229b72aa2aa424d10e846.zip
cpython-9fdb76c34c44ac27531229b72aa2aa424d10e846.tar.gz
cpython-9fdb76c34c44ac27531229b72aa2aa424d10e846.tar.bz2
Fix logging error message (GH-22410)
Same changes as #22276 squashed to a single commit. Just hoping to get Travis to cooperate by opening a new PR... Automerge-Triggered-By: @vsajip
Diffstat (limited to 'Lib/logging/__init__.py')
-rw-r--r--Lib/logging/__init__.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/logging/__init__.py b/Lib/logging/__init__.py
index 94361ca..d8a88db 100644
--- a/Lib/logging/__init__.py
+++ b/Lib/logging/__init__.py
@@ -194,7 +194,8 @@ def _checkLevel(level):
raise ValueError("Unknown level: %r" % level)
rv = _nameToLevel[level]
else:
- raise TypeError("Level not an integer or a valid string: %r" % level)
+ raise TypeError("Level not an integer or a valid string: %r"
+ % (level,))
return rv
#---------------------------------------------------------------------------