Skip to content

Commit

Permalink
bump (#9863)
Browse files Browse the repository at this point in the history
  • Loading branch information
l0lawrence authored Feb 19, 2025
1 parent 4672d17 commit d784f16
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 18 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Release History

## 0.5.2 (2025-02-19)

- Bug fix for `do-not-log-exceptions` checker, was incorrectly flagging debug logs.

## 0.5.1 (2025-01-23)

- Bug Fix for connection_verify rule
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2983,7 +2983,7 @@ def check_for_logging(self, node, exception_name):
levels.
"""
try:
levels_matches = [".warning", ".error", ".info", ".debug"]
levels_matches = [".warning", ".error", ".info"]
for j in node:
if isinstance(j, astroid.Expr):
expression = j.as_string().lower()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

setup(
name="azure-pylint-guidelines-checker",
version="0.5.1",
version="0.5.2",
url="http://github.com/Azure/azure-sdk-for-python",
license="MIT License",
description="A pylint plugin which enforces azure sdk guidelines.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3626,14 +3626,6 @@ def test_logging_levels_logged_str_exception(self, setup):
col_offset=8,
end_line=11,
end_col_offset=28,
),
pylint.testutils.MessageTest(
msg_id="do-not-log-exceptions",
line=12,
node=debug_node,
col_offset=8,
end_line=12,
end_col_offset=29,
)
):
self.checker.visit_try(try_node)
Expand Down Expand Up @@ -3669,14 +3661,6 @@ def test_logging_levels_logged_repr_exception(self, setup):
col_offset=8,
end_line=22,
end_col_offset=29,
),
pylint.testutils.MessageTest(
msg_id="do-not-log-exceptions",
line=23,
node=debug_node,
col_offset=8,
end_line=23,
end_col_offset=30,
)
):
self.checker.visit_try(try_node)
Expand Down

0 comments on commit d784f16

Please sign in to comment.