Skip to content

Commit

Permalink
Update builtin_funcs.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Vardan2009 committed May 28, 2024
1 parent 837c7af commit ea6e4f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/builtin_funcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def execute_len(self, exec_ctx: Context) -> RTResult[Value]:
else:
raise TypeError()
return RTResult[Value]().success(Number(ret))
return TypeError()
raise TypeError()
except TypeError:
return RTResult[Value]().failure(Error(self.pos_start, self.pos_end, "TypeError", "Object has no len()"))

Expand Down

0 comments on commit ea6e4f3

Please sign in to comment.