diff options
| author | Danilo M. <danix@danix.xyz> | 2026-10-28 10:44:16 +0100 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-10-28 10:44:16 +0100 |
| commit | 0838881b87f3a59ccd841d247e4b975347529220 (patch) | |
| tree | de0684bcf35e91c75ed5c615f88bc639fe4e2e44 /generat3d/config.py | |
| parent | d368de4b30d8a1dc9bb72ba45c55b07d3f034c82 (diff) | |
| download | generat3D-0838881b87f3a59ccd841d247e4b975347529220.tar.gz generat3D-0838881b87f3a59ccd841d247e4b975347529220.zip | |
Turn remaining malformed-input crashes into Error
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Diffstat (limited to 'generat3d/config.py')
| -rw-r--r-- | generat3d/config.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/generat3d/config.py b/generat3d/config.py index 804723f..fbb9f4d 100644 --- a/generat3d/config.py +++ b/generat3d/config.py @@ -53,7 +53,10 @@ def library_roots(cli_roots, path=None): for r in roots: if not r.strip(): raise Error("empty library root") - p = Path(r).expanduser() + try: + p = Path(r).expanduser() + except RuntimeError: + raise Error(f"cannot expand library root: {r}") from None if not p.is_dir(): raise Error(f"library root not found: {p}") out.append(p) |
