We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7006d6b commit 175cb89Copy full SHA for 175cb89
manim/scene/scene_file_writer.py
@@ -725,6 +725,8 @@ def flush_cache_directory(self):
725
726
def write_subcaption_file(self):
727
"""Writes the subcaption file."""
728
+ if config.output_file is None:
729
+ return
730
subcaption_file = Path(config.output_file).with_suffix(".srt")
731
subcaption_file.write_text(srt.compose(self.subcaptions), encoding="utf-8")
732
logger.info(f"Subcaption file has been written as {subcaption_file}")
0 commit comments