Skip to content

Commit 2292045

Browse files
committed
simplicy CSIError status
1 parent 8f4bc85 commit 2292045

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

python/nix_csi/errors.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def __init__(
5454
self,
5555
message: str,
5656
logs: str | None = None,
57-
status: Status | None = None,
57+
status: Status = Status.INTERNAL,
5858
) -> None:
5959
"""Initialize CSI error.
6060
@@ -66,8 +66,7 @@ def __init__(
6666
self.message = message
6767
self.logs = logs
6868
self.pod: Pod | None = None # Can be set by handler before re-raising
69-
grpc_status = status or self.__class__.status
70-
super().__init__(grpc_status, message)
69+
super().__init__(status, message)
7170

7271

7372
# Store path closure errors

0 commit comments

Comments
 (0)