Skip to content

Commit

Permalink
updated catching for len event
Browse files Browse the repository at this point in the history
  • Loading branch information
smythi93 committed Jul 28, 2024
1 parent a680114 commit 59db337
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/sflkit/language/python/factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -853,7 +853,19 @@ def get_check_for_len(self, event: LenEvent):
body=[call],
handlers=[
ExceptHandler(
type=Name(id="TypeError"),
type=Tuple(
elts=[
Name(
id="AttributeError",
),
Name(
id="TypeError",
),
Name(
id="NameError",
),
],
),
name=None,
body=[Pass()],
)
Expand Down

0 comments on commit 59db337

Please sign in to comment.