0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-11-12 04:52:26 +01:00

Fix exception when failing to talk to remote server (#17411)

Broke in #17381
This commit is contained in:
Erik Johnston 2024-07-09 11:04:40 +01:00 committed by GitHub
parent 0ed1c64c83
commit 028b103ae0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 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
@ -341,7 +342,7 @@ class PerDestinationQueue:
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: