mirror of
https://github.com/believethehype/nostrdvm.git
synced 2025-06-22 11:20:50 +02:00
Update nostr_utils.py
This commit is contained in:
parent
90e959270f
commit
c3e134c6d7
@ -218,6 +218,8 @@ async def send_event_outbox(event: Event, client, dvm_config) -> SendEventOutput
|
|||||||
|
|
||||||
for relay in relays[:5]:
|
for relay in relays[:5]:
|
||||||
try:
|
try:
|
||||||
|
if not relay.startswith("ws://") and not relay.startswith("wss://"):
|
||||||
|
raise Exception("wrong Scheme")
|
||||||
await outboxclient.add_relay(relay)
|
await outboxclient.add_relay(relay)
|
||||||
except:
|
except:
|
||||||
print("[" + dvm_config.NIP89.NAME + "] " + relay + " couldn't be added to outbox relays")
|
print("[" + dvm_config.NIP89.NAME + "] " + relay + " couldn't be added to outbox relays")
|
||||||
@ -238,6 +240,8 @@ async def send_event_outbox(event: Event, client, dvm_config) -> SendEventOutput
|
|||||||
return None
|
return None
|
||||||
for relay in relays:
|
for relay in relays:
|
||||||
try:
|
try:
|
||||||
|
if not relay.startswith("ws://") and not relay.startswith("wss://"):
|
||||||
|
raise Exception("wrong Scheme")
|
||||||
await outboxclient.add_relay(relay)
|
await outboxclient.add_relay(relay)
|
||||||
except:
|
except:
|
||||||
print("[" + dvm_config.NIP89.NAME + "] " + relay + " couldn't be added to outbox relays")
|
print("[" + dvm_config.NIP89.NAME + "] " + relay + " couldn't be added to outbox relays")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user