diff --git a/ops/model.py b/ops/model.py index 3275b4563..d87b022dd 100644 --- a/ops/model.py +++ b/ops/model.py @@ -274,7 +274,8 @@ def get_secret(self, *, id: Optional[str] = None, label: Optional[str] = None) - label: Secret label if fetching by label (or updating it). Raises: - SecretNotFoundError: If a secret with this ID or label doesn't exist. + SecretNotFoundError: If a secret with this ID or label doesn't exist, + or the caller does not have permission to view it. """ if not (id or label): raise TypeError('Must provide an id or label, or both')