diff sat_pubsub/error.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 074037832daf
children
line wrap: on
line diff
--- a/sat_pubsub/error.py	Thu Oct 21 17:24:25 2021 +0200
+++ b/sat_pubsub/error.py	Thu Oct 21 17:31:01 2021 +0200
@@ -148,7 +148,6 @@
     This node does not support publishing.
     """
 
-
 class BadAccessTypeError(Error):
     pass
 
@@ -157,3 +156,6 @@
     """
     A requirement is not fulfilled
     """
+
+class NotAllowedError(Error):
+    """A permission necessary to do a privileged action is not given"""