if a wrong user config is requested,

this error should be exposed to the consumer.

patch bump.
This commit is contained in:
2023-07-08 07:57:39 +01:00
parent 2849b37670
commit 76960f36d0
2 changed files with 3 additions and 2 deletions

View File

@@ -286,8 +286,9 @@ class Remote(CBindings):
try:
self.apply(self.configs[name])
self.logger.info(f"Profile '{name}' applied!")
except KeyError:
except KeyError as e:
self.logger.error(("\n").join(error_msg))
raise VMError(("\n").join(error_msg)) from e
def logout(self) -> NoReturn:
"""Wait for dirty parameters to clear, then logout of the API"""