Skip to content

Commit

Permalink
revert "fix: remove the try-except block hiding possible exceptions d…
Browse files Browse the repository at this point in the history
…uring the import of the tracer/transpiler"

This reverts commit 5de14d5.
  • Loading branch information
Sam-Armstrong committed Jan 18, 2025
1 parent 5de14d5 commit 98f5f6a
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions ivy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -802,12 +802,14 @@ class Node(str):
from .engines import ivy2xla
except: # noqa: E722
pass

from .tracer import trace_graph
from .transpiler import (
source_to_source,
transpile,
)
try:
from .tracer import trace_graph
from .transpiler import (
source_to_source,
transpile,
)
except: # noqa: E722
pass # Added for the finally statement

# Skip framework imports done by Ivy compiler for now
for backend_framework in _not_imported_backends.copy():
Expand Down

0 comments on commit 98f5f6a

Please sign in to comment.