Skip to content

Commit 5de14d5

Browse files
committed
fix: remove the try-except block hiding possible exceptions during the import of the tracer/transpiler
1 parent 3627074 commit 5de14d5

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

ivy/__init__.py

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -802,14 +802,12 @@ class Node(str):
802802
from .engines import ivy2xla
803803
except: # noqa: E722
804804
pass
805-
try:
806-
from .tracer import trace_graph
807-
from .transpiler import (
808-
source_to_source,
809-
transpile,
810-
)
811-
except: # noqa: E722
812-
pass # Added for the finally statement
805+
806+
from .tracer import trace_graph
807+
from .transpiler import (
808+
source_to_source,
809+
transpile,
810+
)
813811

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

0 commit comments

Comments
 (0)