What is Nostr?
npub1gsn…6tt7
2024-06-13 19:02:46
in reply to nevent1q…ulcw

npub1gs…g6tt7 on Nostr: I changed the relay class in nostr/relay.py to this and the error is gone... policy: ...

I changed the relay class in nostr/relay.py to this and the error is gone... policy: RelayPolicy = field(default_factory=RelayPolicy)

Now it seems it's trying to open a relay with no info. I added a debug printout to the plugin's qt.py:
GET EVENTS RELAY: self.saved_relay=0
ADDING RELAY: url=0 self.message_pool=<nostr.message_pool.MessagePool object at 0x749967f961e0> policy=RelayPolicy(should_read=True, should_write=True) ssl_options=None proxy_config=None
URL IS: 0

It causes this error:
File "/.local/lib/python3.12/site-packages/websocket/_url.py", line 40, in parse_url
if ":" not in url:
^^^^^^^^^^^^^^
TypeError: argument of type 'int' is not iterable

Is there some sort of setup I need to do first?
Author Public Key
npub1gsn4xnc2tk0td8ntk53uqjjca8r4lq9h8t5a3skx6ysv0k9tfz7sqg6tt7