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: