Skip to content

Commit

Permalink
fix: remove module execution warnings fromm ivy loader
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam-Armstrong committed Jan 16, 2025
1 parent 74575f6 commit e88116c
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions ivy/utils/backend/ast_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,9 +274,4 @@ def exec_module(self, module, local_ivy_id=None):
ast.fix_missing_locations(ast_tree)
compiled_obj = compile(ast_tree, filename=self.filename, mode="exec")
_compiled_modules_cache[self.filename] = compiled_obj
try:
exec(compiled_obj, module.__dict__)
except Exception as e:
print(e)
traceback.print_exc()
raise e
exec(compiled_obj, module.__dict__)

0 comments on commit e88116c

Please sign in to comment.