Mercurial > libervia-pubsub
diff sat_pubsub/backend.py @ 471:ed9e12701e0f
backend: return empty roster when `NotAllowedError` is raised in `getOwnerRoster`:
No error is logged either, this case can happen often is roster permission is not granted.
fix 390
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 21 Oct 2021 17:31:01 +0200 |
parents | d86e0f8a1405 |
children | b544109ab4c4 |
line wrap: on
line diff
--- a/sat_pubsub/backend.py Thu Oct 21 17:24:25 2021 +0200 +++ b/sat_pubsub/backend.py Thu Oct 21 17:31:01 2021 +0200 @@ -1090,6 +1090,8 @@ try: roster = await self.privilege.getRoster(owner_jid) + except error.NotAllowedError: + return except Exception as e: log.msg("Error while getting roster of {owner_jid}: {msg}".format( owner_jid = owner_jid.full(),