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
@@ -222,7 +222,7 @@ def main() -> None:
print("\nDone. To publish to PyPI, run:")
print(" uv publish")
except Exception as e:
except (FileNotFoundError, OSError, RuntimeError, ValueError, httpx.HTTPError) as e:
print(f"✗ Release failed: {e}", file=sys.stderr)
sys.exit(1)