summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAurelien Campeas <aurelien.campeas@logilab.fr>2013-03-13 13:07:34 +0100
committerAurelien Campeas <aurelien.campeas@logilab.fr>2013-03-13 13:07:34 +0100
commite04d38b413c1258f4b62acb305a4aa5ab634a5b6 (patch)
tree8786e9f6c826c81e902cf2fae3a7a757b9e5012a
parentb09c38db939b910150ea6c24552596100fb7c7bf (diff)
downloadpylint-e04d38b413c1258f4b62acb305a4aa5ab634a5b6.tar.gz
fix name error causing crash when symbols are included in output messages. Closes #124662
-rw-r--r--ChangeLog2
-rw-r--r--utils.py2
2 files changed, 3 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 2fc80ac..0dbd29b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -5,6 +5,8 @@ ChangeLog for PyLint
* #124660: internal dependencies should not appear in external dependencies
report
+ * #124662: fix name error causing crash when symbols are included in output
+ messages
2013-02-26 -- 0.27.0
diff --git a/utils.py b/utils.py
index 3f499ff..c26bb9a 100644
--- a/utils.py
+++ b/utils.py
@@ -270,7 +270,7 @@ class MessagesHandlerMixIn:
Can be just the message ID or the ID and the symbol.
"""
if self.config.symbols:
- symbol = self.check_message_id(msg_id).symbol
+ symbol = self.check_message_id(msgid).symbol
if symbol:
msgid += '(%s)' % symbol
return msgid