From ead28db48c55e2d01d3d272e064e808cebe5304e Mon Sep 17 00:00:00 2001 From: onyx-and-iris Date: Fri, 25 Aug 2023 20:36:04 +0100 Subject: [PATCH] check only ok_exp --- src/nvda_voicemeeter/nvda.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nvda_voicemeeter/nvda.py b/src/nvda_voicemeeter/nvda.py index bed8246..c605aee 100644 --- a/src/nvda_voicemeeter/nvda.py +++ b/src/nvda_voicemeeter/nvda.py @@ -13,7 +13,7 @@ class CBindings: if ok_exp is None: if retval not in ok: raise NVDAVMCAPIError(fn.__name__, retval) - elif not ok_exp(retval) and retval not in ok: + elif not ok_exp(retval): raise NVDAVMCAPIError(fn.__name__, retval) return retval