diff options
Diffstat (limited to 'pylint/config/callback_actions.py')
-rw-r--r-- | pylint/config/callback_actions.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/pylint/config/callback_actions.py b/pylint/config/callback_actions.py index f1a7bece0..8ce5df179 100644 --- a/pylint/config/callback_actions.py +++ b/pylint/config/callback_actions.py @@ -378,10 +378,14 @@ class _XableAction(_AccessLinterObjectAction): for msgid in utils._check_csv(values[0]): try: xabling_function(msgid) + except exceptions.DeletedMessageError as e: + self.linter._stashed_messages[ + (self.linter.current_name, "useless-option-value") + ].append((option_string, str(e))) except exceptions.UnknownMessageError: - self.linter._stashed_messages[self.linter.current_name].append( - (option_string, msgid) - ) + self.linter._stashed_messages[ + (self.linter.current_name, "unknown-option-value") + ].append((option_string, msgid)) @abc.abstractmethod def __call__( |