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 30f00d5 commit 78edb2aCopy full SHA for 78edb2a
manim/_config/utils.py
@@ -14,6 +14,7 @@
14
import copy
15
import logging
16
import os
17
+import errno
18
import sys
19
import typing
20
from collections.abc import Mapping, MutableMapping
@@ -737,6 +738,13 @@ def digest_file(self, filename: str) -> "ManimConfig":
737
738
multiple times.
739
740
"""
741
+ if not os.path.isfile(filename):
742
+ raise FileNotFoundError(
743
+ errno.ENOENT,
744
+ "Error: --config_file could not find a valid config file.",
745
+ filename,
746
+ )
747
+
748
if filename:
749
return self.digest_parser(make_config_parser(filename))
750
0 commit comments