Merge pull request #537 from PR0M3TH3AN/codex/replace-notify-call-in-start_background_relay_check

Refine relay warning notification
This commit is contained in:
thePR0M3TH3AN
2025-07-14 12:30:32 -04:00
committed by GitHub

View File

@@ -1092,8 +1092,8 @@ class PasswordManager:
healthy = self.nostr_client.check_relay_health(MIN_HEALTHY_RELAYS) healthy = self.nostr_client.check_relay_health(MIN_HEALTHY_RELAYS)
if healthy < MIN_HEALTHY_RELAYS: if healthy < MIN_HEALTHY_RELAYS:
self.notify( self.notify(
f"Only {healthy} relay(s) responded with your latest event." f"Only {healthy} relay(s) responded with your latest event. "
" Consider adding more relays via Settings.", "Consider adding more relays via Settings.",
level="WARNING", level="WARNING",
) )
except Exception as exc: except Exception as exc: