Skip to content

Commit 028b103

Browse files
authored
Fix exception when failing to talk to remote server (#17411)
Broke in #17381
1 parent 0ed1c64 commit 028b103

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

changelog.d/17411.misc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix linting errors from new `ruff` version.

synapse/federation/sender/per_destination_queue.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,7 @@ def attempt_new_transaction(self) -> None:
322322
)
323323

324324
async def _transaction_transmission_loop(self) -> None:
325+
pending_pdus: List[EventBase] = []
325326
try:
326327
self.transmission_loop_running = True
327328

@@ -341,7 +342,7 @@ async def _transaction_transmission_loop(self) -> None:
341342
self._new_data_to_send = False
342343

343344
async with _TransactionQueueManager(self) as (
344-
pending_pdus,
345+
pending_pdus, # noqa: F811
345346
pending_edus,
346347
):
347348
if not pending_pdus and not pending_edus:

0 commit comments

Comments
 (0)