diff --git a/tools/pylint-extensions/azure-pylint-guidelines-checker/pylint_guidelines_checker.py b/tools/pylint-extensions/azure-pylint-guidelines-checker/pylint_guidelines_checker.py index e660657d1cd..4c18cf8a405 100644 --- a/tools/pylint-extensions/azure-pylint-guidelines-checker/pylint_guidelines_checker.py +++ b/tools/pylint-extensions/azure-pylint-guidelines-checker/pylint_guidelines_checker.py @@ -2918,6 +2918,9 @@ def check_for_logging(self, node, exception_name): for i in range(len(expression1)): if exception_name == expression1[i]: if i+1 < len(expression1): + # TODO: Investigate whether there are any other cases we don't want to raise a Pylint + # error + # Prevent .__name__ raising error if "." and "name" not in expression1[i+1]: self.add_message( msgid=f"do-not-log-exceptions",