rethrow if not mdirty error code -9, immediately.

patch bump
This commit is contained in:
onyx-and-iris 2023-07-10 20:17:06 +01:00
parent 4569e8c760
commit 5640f54e65
2 changed files with 2 additions and 2 deletions

View File

@ -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 <code@onyxandiris.online>"]
license = "MIT"

View File

@ -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: