diff --git a/amdsmi_cli/amdsmi_cli_exceptions.py b/amdsmi_cli/amdsmi_cli_exceptions.py index ab8bff5d40..fe6cc79ff9 100644 --- a/amdsmi_cli/amdsmi_cli_exceptions.py +++ b/amdsmi_cli/amdsmi_cli_exceptions.py @@ -182,7 +182,7 @@ class AmdSmiMissingParameterValueException(AmdSmiException): self.stdout_message = f"{common_message} Error code: {self.value}" -class AmdSmiNotSupportedCommandException(AmdSmiException): +class AmdSmiCommandNotSupportedException(AmdSmiException): def __init__(self, command, outputformat: str): super().__init__() self.value = -7 diff --git a/amdsmi_cli/amdsmi_parser.py b/amdsmi_cli/amdsmi_parser.py index f545650cce..359d51fc16 100644 --- a/amdsmi_cli/amdsmi_parser.py +++ b/amdsmi_cli/amdsmi_parser.py @@ -1243,7 +1243,7 @@ class AMDSMIParser(argparse.ArgumentParser): message = message.split("'")[0] # Check if the command is possible in other system configurations and error accordingly if message in self.possible_commands: - raise amdsmi_cli_exceptions.AmdSmiNotSupportedCommandException(message, outputformat) + raise amdsmi_cli_exceptions.AmdSmiCommandNotSupportedException(message, outputformat) raise amdsmi_cli_exceptions.AmdSmiInvalidCommandException(message, outputformat) elif "unrecognized arguments: " in message: l = len("unrecognized arguments: ")