Skip to content

Commit 034c616

Browse files
committed
fix the improper exception based on feedback
Signed-off-by: Kamesh Akella <kakella@redhat.com>
1 parent 88d213e commit 034c616

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/workbenches/notebook-controller/test_custom_images.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
import pytest
88

9+
from kubernetes.dynamic.exceptions import ResourceNotFoundError
910
from ocp_resources.pod import Pod
1011
from ocp_resources.pod import ExecOnPodError
1112
from ocp_resources.namespace import Namespace
@@ -71,7 +72,7 @@ def verify_package_import(
7172

7273
# Check pod exists and is running
7374
if not pod.exists:
74-
raise RuntimeError(_ERR_POD_NOT_EXISTS.format(pod_name=pod.name))
75+
raise ResourceNotFoundError(_ERR_POD_NOT_EXISTS.format(pod_name=pod.name))
7576

7677
pod_status = pod.instance.status
7778
if pod_status.phase != "Running":

0 commit comments

Comments
 (0)