Skip to content

Commit d3835ef

Browse files
committed
Fix: Restore exception in '_PyErr_BadInternalCall'.
1 parent 34971b1 commit d3835ef

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

graalpython/lib-graalpython/python_cext.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -808,6 +808,7 @@ def PyErr_CreateAndSetException(exception_type, msg):
808808
raise exception_type(msg)
809809

810810

811+
@may_raise(None)
811812
def _PyErr_BadInternalCall(filename, lineno, obj):
812813
if filename is not None and lineno is not None:
813814
msg = "{!s}:{!s}: bad argument to internal function".format(filename, lineno)

0 commit comments

Comments
 (0)