Skip to content

Commit

Permalink
(fix) pylint-dev#10106 AttributeError lambda variable as exception
Browse files Browse the repository at this point in the history
  • Loading branch information
ChandanChainani committed Feb 13, 2025
1 parent 5c6950c commit d1a7861
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pylint/checkers/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ def _check_catching_non_exception(
return
if all(
node
and (utils.inherit_from_std_ex(node) or not utils.has_known_bases(node))
and (utils.inherit_from_std_ex(node) or (isinstance(node, nodes.ClassDef) and not utils.has_known_bases(node)))
for node in inferred
):
return
Expand Down

0 comments on commit d1a7861

Please # to comment.