diff --git a/pylint/lint/pylinter.py b/pylint/lint/pylinter.py index e46577615a..b0595a17b7 100644 --- a/pylint/lint/pylinter.py +++ b/pylint/lint/pylinter.py @@ -1435,8 +1435,7 @@ def is_message_enabled( if confidence.name not in self.config.confidence: return False try: - message_definitions = self.msgs_store.get_message_definitions(msg_descr) - msgids = [md.msgid for md in message_definitions] + msgids = self.msgs_store.message_id_store.get_active_msgids(msg_descr) except exceptions.UnknownMessageError: # The linter checks for messages that are not registered # due to version mismatch, just treat them as message IDs