summaryrefslogtreecommitdiff
path: root/lint.py
diff options
context:
space:
mode:
authorTorsten Marek <shlomme@gmail.com>2014-04-09 00:19:18 +0200
committerTorsten Marek <shlomme@gmail.com>2014-04-09 00:19:18 +0200
commit5a6ee7e00b58de14a38aade53d938f72c8c1f712 (patch)
tree16ea474c6c0ad59889a9524b758c5e2e4347d4a3 /lint.py
parent1019cfc1911bd02695e0deb9b8e4d988df289a48 (diff)
downloadpylint-git-5a6ee7e00b58de14a38aade53d938f72c8c1f712.tar.gz
Do not crash when disable or enable in the RC file contain invalid message IDs or names.
Closes #170
Diffstat (limited to 'lint.py')
-rw-r--r--lint.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/lint.py b/lint.py
index 74c3a3f0a..0e1afa09a 100644
--- a/lint.py
+++ b/lint.py
@@ -29,6 +29,7 @@
# import this first to avoid builtin namespace pollution
from pylint.checkers import utils
+import functools
import sys
import os
import tokenize
@@ -389,7 +390,7 @@ warning, statement which respectively contain the number of errors / warnings\
value = check_csv(None, optname, value)
if isinstance(value, (list, tuple)):
for _id in value:
- meth(_id)
+ meth(_id, ignore_unknown=True)
else:
meth(value)
elif optname == 'output-format':