From 76960f36d0c9365ac1f2623f42491616cd2db883 Mon Sep 17 00:00:00 2001 From: onyx-and-iris Date: Sat, 8 Jul 2023 07:57:39 +0100 Subject: [PATCH] if a wrong user config is requested, this error should be exposed to the consumer. patch bump. --- pyproject.toml | 2 +- voicemeeterlib/remote.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 5e3b126..5f3dd6a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "voicemeeter-api" -version = "2.1.1" +version = "2.1.2" description = "A Python wrapper for the Voiceemeter API" authors = ["onyx-and-iris "] license = "MIT" diff --git a/voicemeeterlib/remote.py b/voicemeeterlib/remote.py index f51905c..96b6274 100644 --- a/voicemeeterlib/remote.py +++ b/voicemeeterlib/remote.py @@ -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"""