mirror of
https://github.com/believethehype/nostrdvm.git
synced 2025-06-12 11:40:47 +02:00
error handling
This commit is contained in:
parent
79af336a7c
commit
a66aaa8daa
@ -234,7 +234,10 @@ 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.
|
# 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:
|
if event_id is None:
|
||||||
for relay in relays:
|
for relay in relays:
|
||||||
|
try:
|
||||||
await outboxclient.remove_relay(relay)
|
await outboxclient.remove_relay(relay)
|
||||||
|
except:
|
||||||
|
print("Error removing relay: " + relay)
|
||||||
|
|
||||||
|
|
||||||
relays = await get_main_relays(event, client, dvm_config)
|
relays = await get_main_relays(event, client, dvm_config)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user