Skip to content

Commit

Permalink
Add TODO comment re other cases to investigate
Browse files Browse the repository at this point in the history
  • Loading branch information
JessicaBell00 committed Oct 6, 2024
1 parent 3abf67a commit 6a319b7
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 6a319b7

Please sign in to comment.