We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8f4bc85 commit 2292045Copy full SHA for 2292045
1 file changed
python/nix_csi/errors.py
@@ -54,7 +54,7 @@ def __init__(
54
self,
55
message: str,
56
logs: str | None = None,
57
- status: Status | None = None,
+ status: Status = Status.INTERNAL,
58
) -> None:
59
"""Initialize CSI error.
60
@@ -66,8 +66,7 @@ def __init__(
66
self.message = message
67
self.logs = logs
68
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)
+ super().__init__(status, message)
71
72
73
# Store path closure errors
0 commit comments