diff --git a/auth/auth_server/controllers/base.py b/auth/auth_server/controllers/base.py index 4cdfa19de..ee58adf2f 100644 --- a/auth/auth_server/controllers/base.py +++ b/auth/auth_server/controllers/base.py @@ -221,7 +221,13 @@ def format_user_action_resources(self, action_resources, action_list): if id_ in [x[0] for x in aset]: # downward hierarchy was derived from a higher entity continue - response = self.get_downward_hierarchy(res_type, id_) + try: + response = self.get_downward_hierarchy(res_type, id_) + except requests.exceptions.HTTPError as exc: + if exc.response.status_code == 404: + # resource is deleted + continue + raise self.render(action_resources, aset, response) result = dict(map(lambda k: (k, list()), action_list)) for i in aset: