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 60cda3c commit b6c7ac6Copy full SHA for b6c7ac6
src/tox/config/__init__.py
@@ -1801,16 +1801,11 @@ def _replace_match(self, match):
1801
if not any(g.values()):
1802
return os.pathsep
1803
1804
+ sub_type = g["sub_type"]
1805
+
1806
if sub_value == "posargs":
1807
return self.reader.getposargs(match.group("default_value"))
1808
- try:
- sub_type = g["sub_type"]
1809
- except KeyError:
1810
- raise tox.exception.ConfigError(
1811
- "Malformed substitution; no substitution type provided",
1812
- )
1813
-
1814
if not sub_type and not g["default_value"] and sub_value == "/":
1815
return os.sep
1816
if sub_type == "env":
0 commit comments