check only ok_exp

This commit is contained in:
onyx-and-iris 2023-08-25 20:36:04 +01:00
parent 7d3647afd7
commit ead28db48c

View File

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