summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryce Guinta <bryce.paul.guinta@gmail.com>2018-07-13 17:34:55 -0600
committerBryce Guinta <bryce.paul.guinta@gmail.com>2018-07-13 17:37:18 -0600
commite502a7f5f4a4fba7bdaf463bdddb5d588ca0e8cf (patch)
tree78803d5be22c02de0f007ec37effa552c314f887
parent5f9b46c0d45aa1fef67283a96062ff5de25a1263 (diff)
downloadpylint-git-e502a7f5f4a4fba7bdaf463bdddb5d588ca0e8cf.tar.gz
Do not try to lower checker name if not set
-rw-r--r--pylint/checkers/__init__.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pylint/checkers/__init__.py b/pylint/checkers/__init__.py
index 4cc60d60a..34b54e203 100644
--- a/pylint/checkers/__init__.py
+++ b/pylint/checkers/__init__.py
@@ -89,7 +89,8 @@ class BaseChecker(OptionsProviderMixIn):
linter is an object implementing ILinter
"""
- self.name = self.name.lower()
+ if self.name is not None:
+ self.name = self.name.lower()
OptionsProviderMixIn.__init__(self)
self.linter = linter