Skip to content

Commit f8dfc85

Browse files
author
Sanjay Prabhakar
committed
[patch] add exception in getCR
1 parent 54f08e0 commit f8dfc85

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/mas/devops/ocp.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,8 @@ def getCR(dynClient: DynamicClient, cr_api_version: str, cr_kind: str, cr_name:
257257
return cr
258258
except NotFoundError:
259259
logger.debug(f"CR {cr_name} of kind {cr_kind} does not exist in namespace {namespace}")
260+
except Exception as e:
261+
logger.debug(f"Error retrieving CR {cr_name} of kind {cr_kind} in namespace {namespace}: {e}")
260262

261263
return {}
262264

0 commit comments

Comments
 (0)