From: garciadeblas Date: Wed, 17 Dec 2025 07:20:58 +0000 (+0100) Subject: Fix exception mgmt in async function kubectl.get_generic_object X-Git-Tag: v19.0.0~9 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=3a461df921bb012212f4e05f759f1b6817cad708;p=osm%2FLCM.git Fix exception mgmt in async function kubectl.get_generic_object Change-Id: I98c4759dffbc743cc83f19d492b745a6a94c7f31 Signed-off-by: garciadeblas --- diff --git a/osm_lcm/n2vc/kubectl.py b/osm_lcm/n2vc/kubectl.py index a1ac6def..eac857a3 100644 --- a/osm_lcm/n2vc/kubectl.py +++ b/osm_lcm/n2vc/kubectl.py @@ -883,7 +883,8 @@ class Kubectl: except ApiException as e: self.logger.debug(f"Exception: {e}") info = json.loads(e.body) - raise f"Api Exception: {e}. Reason: {info.get('reason')}" + self.logger.debug(f"Api Exception: {e}. Reason: {info.get('reason')}") + return None async def list_generic_object( self,