Skip to content

Commit 6a319b7

Browse files
committed
Add TODO comment re other cases to investigate
1 parent 3abf67a commit 6a319b7

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

tools/pylint-extensions/azure-pylint-guidelines-checker/pylint_guidelines_checker.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2918,6 +2918,9 @@ def check_for_logging(self, node, exception_name):
29182918
for i in range(len(expression1)):
29192919
if exception_name == expression1[i]:
29202920
if i+1 < len(expression1):
2921+
# TODO: Investigate whether there are any other cases we don't want to raise a Pylint
2922+
# error
2923+
# Prevent .__name__ raising error
29212924
if "." and "name" not in expression1[i+1]:
29222925
self.add_message(
29232926
msgid=f"do-not-log-exceptions",

0 commit comments

Comments
 (0)