Skip to content

Commit

Permalink
remove exec from download_integration (#13523)
Browse files Browse the repository at this point in the history
  • Loading branch information
logan-markewich authored May 16, 2024
1 parent ece8f2d commit bd827c3
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion llama-index-core/llama_index/core/download/integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ def download_integration(module_str: str, module_import_str: str, cls_name: str)
raise Exception(f"Failed to pip install `{module_str}`") from e

try:
exec(f"from {module_import_str} import {cls_name}")
module_spec = importlib.util.find_spec(module_import_str)
module = importlib.util.module_from_spec(module_spec)
module_spec.loader.exec_module(module)
Expand Down

0 comments on commit bd827c3

Please # to comment.