Fix PyErrors

pull/335/head
A. R. Shajii 2023-03-04 16:26:36 -05:00
parent 921cf74ce2
commit 3adb42b3b9
1 changed files with 2 additions and 2 deletions

View File

@ -1641,7 +1641,7 @@ class _PyWrap:
return fn(*an).__to_py__()
except PyError:
pass
PyError("cannot dispatch " + F)
raise PyError("cannot dispatch " + F)
def wrap_multiple(obj: cobj, args: Ptr[cobj], nargs: int, T: type, F: Static[str]):
# print(f'[c] nonmethod: {T.__class__.__name__} {F} {obj} {args} {nargs}')
@ -1661,7 +1661,7 @@ class _PyWrap:
return fn(*an).__to_py__()
except PyError:
pass
PyError("cannot dispatch " + F)
raise PyError("cannot dispatch " + F)
def wrap_get(obj: cobj, closure: cobj, T: type, S: Static[str]):
return getattr(T.__from_py__(obj), S).__to_py__()