We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0d1e95f commit 52388faCopy full SHA for 52388fa
1 file changed
FluentPython/core/config.py
@@ -126,8 +126,19 @@ def list_versions(self) -> list[FluentPyVersion]:
126
res = []
127
for verdirname in self._list_version_dirs():
128
corrupted = False
129
+ # check name legallity: 0-9a-f only
130
+ if not all(c in "0123456789abcdef" for c in verdirname):
131
+ logger.warning(
132
+ f"Version directory {verdirname} contains non-hex characters; skipping"
133
+ )
134
+ continue
135
+ version_dir = self.environments_dir / verdirname
136
+ if not version_dir.is_dir():
137
138
+ f"Version directory {version_dir} is not a directory; skipping"
139
140
141
while True:
- version_dir = self.environments_dir / verdirname
142
ver_config_file = version_dir / 'fluentpy.json'
143
try:
144
ver_config = VersionConfig.model_validate_json(
0 commit comments