plugin XEP-402: log a warning instead of an exception on NotFound error.

This commit is contained in:
Goffi 2026-05-21 21:05:23 +02:00
commit 00c7f1b1a3

View file

@ -238,6 +238,9 @@ class XEP_0402:
"""
try:
bookmarks = await self.list(client)
except exceptions.NotFound:
log.warning(f"[{client.profile}] No bookmarks found on server")
return
except Exception:
log.exception(f"[{client.profile}] Failed to retrieve bookmarks on startup")
return