plugin XEP-402: log a warning instead of an exception on NotFound error.
This commit is contained in:
parent
f5e065b56a
commit
00c7f1b1a3
1 changed files with 3 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue