diff options
Diffstat (limited to 'Lib/logging/__init__.py')
-rw-r--r-- | Lib/logging/__init__.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/logging/__init__.py b/Lib/logging/__init__.py index abc4b0c..c5988c9 100644 --- a/Lib/logging/__init__.py +++ b/Lib/logging/__init__.py @@ -1096,6 +1096,8 @@ class Manager(object): placeholder to now point to the logger. """ rv = None + if not isinstance(name, str): + raise ValueError('A logger name must be a string') _acquireLock() try: if name in self.loggerDict: |