Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

This try loop was hiding some more legitimate import errors

Grant Sanderson2a74f3a687f6
diff --git a/extract_scene.py b/extract_scene.py
index f7c91f94d..1cddadc1c 100644
--- a/extract_scene.py
+++ b/extract_scene.py
@@ -224,11 +224,8 @@ def get_module_posix(file_name):
module_name = file_name.replace(".py", "")
last_module = imp.load_module(".", *imp.find_module("."))
for part in module_name.split(os.sep):
- try:
- load_args = imp.find_module(part, last_module.__path__)
- last_module = imp.load_module(part, *load_args)
- except ImportError:
- continue
+ load_args = imp.find_module(part, last_module.__path__)
+ last_module = imp.load_module(part, *load_args)
return last_module