Skip to content

Commit 519e21c

Browse files
committed
Fix PyObject_SetItem returning wrong error value
1 parent 67741d9 commit 519e21c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graalpython/lib-graalpython/python_cext.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1100,7 +1100,7 @@ def PyObject_DelItem(obj, key):
11001100
return 0
11011101

11021102

1103-
@may_raise(1)
1103+
@may_raise(-1)
11041104
def PyObject_SetItem(obj, key, value):
11051105
obj[key] = value
11061106
return 0

0 commit comments

Comments
 (0)