rename exceptions + lint fixes

This commit is contained in:
2026-03-19 03:51:36 +00:00
parent 8e8e3ce8a5
commit 8b025206b1
4 changed files with 26 additions and 17 deletions

View File

@@ -2,7 +2,7 @@ import ctypes as ct
from ctypes.wintypes import CHAR, FLOAT, LONG
from .cdll import libc
from .error import VMCAPIError
from .error import VMAddonCAPIError
class Binds:
@@ -41,5 +41,5 @@ class Binds:
def call(self, fn, *args, ok=(0,)):
retval = fn(*args)
if retval not in ok:
raise VMCAPIError(fn.__name__, retval)
raise VMAddonCAPIError(fn.__name__, retval)
return retval