mirror of
https://github.com/ManimCommunity/manim.git
synced 2026-06-22 10:01:47 +00:00
Fix wrong import of FileWriter and reference to nonexisting 'found' in module_ops
This commit is contained in:
parent
f60c54581d
commit
2995ad4040
1 changed files with 2 additions and 2 deletions
|
|
@ -16,7 +16,7 @@ from manim.constants import (
|
|||
NO_SCENE_MESSAGE,
|
||||
SCENE_NOT_FOUND_MESSAGE,
|
||||
)
|
||||
from manim.scene.file_writer import FileWriter
|
||||
from manim.file_writer import FileWriter
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from manim.scene.scene import Scene
|
||||
|
|
@ -100,7 +100,7 @@ def get_scenes_to_render(scene_classes: list[type[Scene]]) -> list[type[Scene]]:
|
|||
if scene_class.__name__ == scene_name:
|
||||
result.append(scene_class)
|
||||
break
|
||||
if not found and (scene_name != ""):
|
||||
else:
|
||||
logger.error(SCENE_NOT_FOUND_MESSAGE.format(scene_name))
|
||||
if result:
|
||||
return result
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue