You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 3, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Sep 3, 2026. It is now read-only.
async with (await conn_fut) as connection:
# Needs to happen prior to reinitialization to clear outstanding waiters.
if last_failure is not None:
while not self._write_queue.empty():
self._write_queue.get_nowait().response_future.set_exception(
last_failure
)
self._read_queue = asyncio.Queue(maxsize=1)
self._write_queue = asyncio.Queue(maxsize=1)
await self._reinitializer.reinitialize(connection, last_failure)
self._initialized_once.set()
bad_retries = 0
await self._loop_connection(connection)
Triggers:
File ".../google/cloud/pubsublite/internal/wire/retrying_connection.py", line 97, in _run_loop: Name 'connection' is not defined [name-error]
File ".../google/cloud/pubsublite/internal/wire/retrying_connection.py", line 100, in _run_loop: Name 'connection' is not defined [name-error]
Activity
rchen152 commentedon Aug 18, 2021
Here's a self-contained example of the issue:
Running
pytype-single retrying_connection.pyproduces:rchen152 commentedon Aug 18, 2021
When I run with
-v4, I see this suspicious debug output:Don't report an unhelpful name error when YIELD_FROM yields nothing.