diff options
author | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2011-11-07 10:15:08 (GMT) |
---|---|---|
committer | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2011-11-07 10:15:08 (GMT) |
commit | 3bd56387360e0b5ab1930640d0c4830c7fd6de23 (patch) | |
tree | e874fb79ea2cb7210c4124367ae7bf9376320bcb /Lib/logging | |
parent | 61b787e6dd00b1e6e24a12e2d5aa6e9fd1352663 (diff) | |
download | cpython-3bd56387360e0b5ab1930640d0c4830c7fd6de23.zip cpython-3bd56387360e0b5ab1930640d0c4830c7fd6de23.tar.gz cpython-3bd56387360e0b5ab1930640d0c4830c7fd6de23.tar.bz2 |
Closes #13361: Raise correct exception type.
Diffstat (limited to 'Lib/logging')
-rw-r--r-- | Lib/logging/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/logging/__init__.py b/Lib/logging/__init__.py index bea290e..7dacddb 100644 --- a/Lib/logging/__init__.py +++ b/Lib/logging/__init__.py @@ -1095,7 +1095,7 @@ class Manager(object): """ rv = None if not isinstance(name, str): - raise ValueError('A logger name must be a string') + raise TypeError('A logger name must be a string') _acquireLock() try: if name in self.loggerDict: |