File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
internal_filesystem/apps/com.micropythonos.nostr/assets Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -87,8 +87,9 @@ async def async_event_manager_task(self):
8787 print (f"DEBUG: Setting up subscription with ID: { self .subscription_id } " )
8888
8989 # Create filter for events from follow_npub
90+ # Note: Some relays don't support filtering by both kinds and authors
91+ # So we just filter by authors
9092 self .filters = Filters ([Filter (
91- kinds = [1 ], # Text notes
9293 authors = [self .follow_npub ],
9394 )])
9495 print (f"DEBUG: Subscription filters: { self .filters .to_json_array ()} " )
@@ -127,6 +128,13 @@ async def async_event_manager_task(self):
127128 print (f"DEBUG: Error processing event: { e } " )
128129 import sys
129130 sys .print_exception (e )
131+
132+ # Check for relay notices (error messages)
133+ if self .relay_manager .message_pool .has_notices ():
134+ notice_msg = self .relay_manager .message_pool .get_notice ()
135+ print (f"DEBUG: Relay notice: { notice_msg } " )
136+ if notice_msg :
137+ self .handle_error (f"Relay: { notice_msg .content } " )
130138
131139 except Exception as e :
132140 print (f"async_event_manager_task exception: { e } " )
You can’t perform that action at this time.
0 commit comments