fixes crash when no outbox relay is available

This commit is contained in:
Believethehype
2024-09-04 07:54:07 +02:00
parent f92fbd0369
commit c193dfae80
3 changed files with 10 additions and 9 deletions

View File

@@ -225,7 +225,7 @@ async def send_event_outbox(event: Event, client, dvm_config) -> EventId:
# 5. Fallback, if we couldn't send the event to any relay, we try to send to generic relays instead.
if event_id is None:
for relay in relays:
outboxclient.remove_relay(relay)
await outboxclient.remove_relay(relay)
relays = await get_main_relays(event, client, dvm_config)
for relay in relays: