mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-07-27 22:21:04 +02:00
The send method had two sequential while loops: one for connecting and one for sending. After a send failure the producer was closed and set to None, but control stayed in the send loop rather than returning to the connect loop. The next iteration called .send() on None, then .close() on None in the except block, propagating an AttributeError that masked the original error (e.g. MessageTooBig). Nest the connect loop inside the send loop so failures trigger reconnection, and guard the .close() call against None. |
||
|---|---|---|
| .. | ||
| trustgraph | ||
| pyproject.toml | ||
| README.md | ||