Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Raise a more detailed exception for cfg write test.

Aathish138ae17dc17d
diff --git a/manim/utils/cfg_subcmds.py b/manim/utils/cfg_subcmds.py
index de54eebe4..9f1a6b261 100644
--- a/manim/utils/cfg_subcmds.py
+++ b/manim/utils/cfg_subcmds.py
@@ -154,8 +154,14 @@ To save your config please save that file and place it in your current working d
else default[key]
)
console.print(f"(defaults to {defaultval}) :", end="")
-
- temp = input()
+ try:
+ temp = input()
+ except EOFError:
+ raise Exception(
+ """Not enough values in input.
+If you have added a new entry to default.cfg, have you modified _write_cfg_subcmd_input
+to account for it?"""
+ )
if temp:
while temp and not _is_expected_datatype(
temp, default[key], bool(style)