Skip to content

Commit

Permalink
Update tools/pylint-extensions/azure-pylint-guidelines-checker/pylint…
Browse files Browse the repository at this point in the history
…_guidelines_checker.py

Co-authored-by: Anna Tisch <antisch@microsoft.com>
  • Loading branch information
JessicaBell00 and annatisch authored Sep 2, 2024
1 parent 666fb02 commit 3d03db1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2759,7 +2759,7 @@ def check_for_logging(self, node):
""" Helper function - checks 'Expr' nodes to see if logging has occurred at 'warning' or 'error'
levels. Called from 'check_for_raise' function
"""
matches = [".warning", ".error"]
matches = [".warning", ".error", ".exception"]
for j in node:
if isinstance(j, astroid.Expr):
expression = j.as_string().lower()
Expand Down

0 comments on commit 3d03db1

Please sign in to comment.