From 5640f54e657db0ed63019f8a2996499465dd44aa Mon Sep 17 00:00:00 2001 From: onyx-and-iris Date: Mon, 10 Jul 2023 20:17:06 +0100 Subject: [PATCH] rethrow if not mdirty error code -9, immediately. patch bump --- pyproject.toml | 2 +- voicemeeterlib/remote.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 4ca38b4..e22a7fa 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "voicemeeter-api" -version = "2.2.0" +version = "2.2.1" 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 7651917..76c68f0 100644 --- a/voicemeeterlib/remote.py +++ b/voicemeeterlib/remote.py @@ -138,7 +138,7 @@ class Remote(CBindings): while self.pdirty or self.mdirty: pass except CAPIError as e: - if e.fn_name == "VBVMR_MacroButton_IsDirty" and e.code != -9: + if not (e.fn_name == "VBVMR_MacroButton_IsDirty" and e.code == -9): raise self.logger.error(f"{e} clearing pdirty only.") while self.pdirty: