Skip to content

shell_utils

drunc.utils.shell_utils

Classes

InterruptedCommand(message=None, grpc_error_code=None, details=None, *args, **kwargs)

Bases: DruncShellException

This exception gets thrown if we don't want to have a full stack, but still want to interrupt a shell command

Source code in drunc/exceptions.py
def __init__(
    self, message=None, grpc_error_code=None, details=None, *args, **kwargs
):
    if message is None:
        message = "Drunc Error"  # default message

    super().__init__(message, *args, **kwargs)

    if grpc_error_code is not None:
        self.grpc_error_code = grpc_error_code
    if details is not None:
        self.details = details

Functions