From f618b6a6a1c19c7c2a38bbcdca674bbf4e5a2670 Mon Sep 17 00:00:00 2001 From: disqualifier Date: Sun, 28 Jun 2026 17:18:28 -0400 Subject: [PATCH] style: drop inline comments in the template-field error path the rationale they carried is already in the ValueError message; the lib convention is docstrings only. Signed-off-by: disqualifier --- README.md | 4 ++-- src/aioproxies/manager.py | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 4440d2d..e56c070 100644 --- a/README.md +++ b/README.md @@ -9,9 +9,9 @@ edits. **Credentials are always injected — never hardcoded.** ## Install ``` -aioproxies @ git+ssh://git@git.rethinkstudios.io/rethink-public/aioproxies.git@v0.2.0 +aioproxies @ git+ssh://git@git.rethinkstudios.io/rethink-public/aioproxies.git@v0.2.1 # network helpers (current_ip / reset) need the extra: -aioproxies[net] @ git+ssh://git@git.rethinkstudios.io/rethink-public/aioproxies.git@v0.2.0 +aioproxies[net] @ git+ssh://git@git.rethinkstudios.io/rethink-public/aioproxies.git@v0.2.1 ``` The core has no dependencies. The `net` extra adds `aiohttp` for `current_ip` / diff --git a/src/aioproxies/manager.py b/src/aioproxies/manager.py index 7fc8319..7629a11 100644 --- a/src/aioproxies/manager.py +++ b/src/aioproxies/manager.py @@ -126,8 +126,6 @@ class AioProxies: try: filled = self.template.format(session=self.session_id(), **fields) except (KeyError, IndexError) as exc: - # a template placeholder wasn't supplied in next(**fields) — fail loud - # but legible instead of leaking a bare KeyError from str.format raise ValueError( f"template placeholder {exc} not provided; pass it to next(**fields)" ) from exc