Compare commits

...

2 Commits

Author SHA1 Message Date
Erik Johnston
79a4bd865a Newsfile 2024-07-08 11:17:13 +01:00
Erik Johnston
2415b3bc8c Fix exception when failing to talk to remote server 2024-07-08 11:15:00 +01:00
2 changed files with 4 additions and 1 deletions

1
changelog.d/17411.misc Normal file
View File

@@ -0,0 +1 @@
Fix linting errors from new `ruff` version.

View File

@@ -322,6 +322,7 @@ class PerDestinationQueue:
)
async def _transaction_transmission_loop(self) -> None:
pending_pdus: List[EventBase] = []
try:
self.transmission_loop_running = True
@@ -337,11 +338,12 @@ class PerDestinationQueue:
# not caught up yet
return
pending_pdus = []
while True:
self._new_data_to_send = False
async with _TransactionQueueManager(self) as (
pending_pdus,
pending_pdus, # noqa: F811
pending_edus,
):
if not pending_pdus and not pending_edus: