diff options
author | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2011-11-07 10:13:18 +0000 |
---|---|---|
committer | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2011-11-07 10:13:18 +0000 |
commit | 53703d9d72c4b48a8c602209c4e4aba15f48d238 (patch) | |
tree | f57245020fbd9c96a3f2f6d1a8090782323df88f /Lib/logging | |
parent | 74ab3440bad1b97e39fb5adf992e555ba26001d1 (diff) | |
download | cpython-git-53703d9d72c4b48a8c602209c4e4aba15f48d238.tar.gz |
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 a0c4cb7233..dad69aebca 100644 --- a/Lib/logging/__init__.py +++ b/Lib/logging/__init__.py @@ -1008,7 +1008,7 @@ class Manager(object): """ rv = None if not isinstance(name, basestring): - raise ValueError('A logger name must be string or Unicode') + raise TypeError('A logger name must be string or Unicode') if isinstance(name, unicode): name = name.encode('utf-8') _acquireLock() |