summaryrefslogtreecommitdiff
path: root/pylint/utils.py
diff options
context:
space:
mode:
authorhippo91 <guillaume.peillex@gmail.com>2017-09-26 17:03:42 +0200
committerClaudiu Popa <pcmanticore@gmail.com>2017-09-26 17:03:42 +0200
commit56a6723f96dddd1e70e668d808e8446fd53b841f (patch)
treecbead24fb86338441114e4cdc9245ac540a8d10c /pylint/utils.py
parent8dd70cb76439d72ea02ade02ae0dfa028a46619c (diff)
downloadpylint-git-56a6723f96dddd1e70e668d808e8446fd53b841f.tar.gz
Adding a check for ``inconsistent-return-statements`` inside function or methods. (#1641)
Close #1267
Diffstat (limited to 'pylint/utils.py')
-rw-r--r--pylint/utils.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/pylint/utils.py b/pylint/utils.py
index 4ad04d6cd..dc796a883 100644
--- a/pylint/utils.py
+++ b/pylint/utils.py
@@ -329,6 +329,7 @@ class MessagesHandlerMixIn(object):
return MSG_STATE_SCOPE_MODULE
except (KeyError, TypeError):
return MSG_STATE_SCOPE_CONFIG
+ return None
def is_message_enabled(self, msg_descr, line=None, confidence=None):
"""return true if the message associated to the given message id is