We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aca5534 commit acef329Copy full SHA for acef329
1 file changed
packages/cheese3d/cheese3d/config.py
@@ -1,3 +1,4 @@
1
+import re
2
import hydra
3
from omegaconf import MISSING, OmegaConf, DictConfig
4
from dataclasses import dataclass, field
@@ -315,6 +316,9 @@ def build_regex(regex):
315
316
for key, rstr in regex.items():
317
full_regex = full_regex.replace("{{" + key + "}}", # type: ignore
318
fr"(?P<{key}>{rstr})")
319
+ missing_groups = re.match("({{.*}})", full_regex)
320
+ if missing_groups:
321
+ raise RuntimeError(f"Regex is missing definitions for groups: {missing_groups.groups}")
322
323
return full_regex
324
else:
0 commit comments