fix __name__

This commit is contained in:
onyx-and-iris 2023-09-24 18:31:06 +01:00
parent f24ef8442e
commit bac1fb09ec

View File

@ -37,5 +37,5 @@ class Binds:
def call(self, fn, *args, ok=(0,)): def call(self, fn, *args, ok=(0,)):
retval = fn(*args) retval = fn(*args)
if retval not in ok: if retval not in ok:
raise VMCAPIError(fn.bind_namebind_, retval) raise VMCAPIError(fn.__name__, retval)
return retval return retval