BLE001 except Exception replaced for more specific types.

This commit is contained in:
2026-05-25 02:19:41 +00:00
parent 54a4b57230
commit 3768967e7d
12 changed files with 50 additions and 39 deletions
+1 -1
View File
@@ -256,7 +256,7 @@ def main() -> None:
print(f"✓ Built successfully: {zip_path}")
print(f" Size: {zip_path.stat().st_size / (1024 * 1024):.1f} MB")
except Exception as e:
except (FileNotFoundError, OSError, RuntimeError, ValueError) as e:
print(f"✗ Build failed: {e}", file=sys.stderr)
sys.exit(1)