diff --git a/notifications_routing/authorization_service.py b/notifications_routing/authorization_service.py index 465c4a6bca1891659f998ea5268cda9e5a8a9899..84dfc4be0992af9b39b273eb3c788981bcab7c65 100644 --- a/notifications_routing/authorization_service.py +++ b/notifications_routing/authorization_service.py @@ -29,7 +29,7 @@ def _get_group_users(group_id: str, headers: Dict[str, str], url: str = None): url = f"{Config.CERN_AUTH_SERVICE_URL}{url}" r = requests.get(url, headers=headers) - if r.status_code != requests.codes.ok: + if r.status_code != requests.codes.ok and r.status_code != requests.codes.not_found: raise BadResponseCodeError(url, status_code=r.status_code) return json.loads(r.content)