Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Nov 20, 2024
1 parent f270ad4 commit 4c7d7be
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion thunder/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -825,7 +825,9 @@ def _thunder_unwrap_inner_exception(*args, **kwargs):
def internal_to_thunder(co):
if co is thunder_general_jit.__code__ or co is _thunder_unwrap_inner_exception.__code__:
return True
return co.co_filename.endswith("thunder" + os.sep + "core" + os.sep + "interpreter.py") and (co.co_name in ("fn_", "fn_2"))
return co.co_filename.endswith("thunder" + os.sep + "core" + os.sep + "interpreter.py") and (
co.co_name in ("fn_", "fn_2")
)

# Iterate over the traceback and collect frames that don't correspond to thunder internal functions.
tb = exc.__traceback__
Expand Down

0 comments on commit 4c7d7be

Please sign in to comment.