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?
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?