Skip to content

Commit

Permalink
Fix exception when failing to talk to remote server (#17411)
Browse files Browse the repository at this point in the history
Broke in #17381
  • Loading branch information
erikjohnston authored Jul 9, 2024
1 parent 0ed1c64 commit 028b103
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.d/17411.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix linting errors from new `ruff` version.
3 changes: 2 additions & 1 deletion synapse/federation/sender/per_destination_queue.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,7 @@ def attempt_new_transaction(self) -> None:
)

async def _transaction_transmission_loop(self) -> None:
pending_pdus: List[EventBase] = []
try:
self.transmission_loop_running = True

Expand All @@ -341,7 +342,7 @@ async def _transaction_transmission_loop(self) -> None:
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:
Expand Down

0 comments on commit 028b103

Please sign in to comment.