Skip to content

Commit 6a1ca8f

Browse files
committed
Fix: accidentally used SyntaxError instead of SystemError
1 parent 5228f35 commit 6a1ca8f

File tree

1 file changed

+1
-1
lines changed
  • graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/cext/capi

1 file changed

+1
-1
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/cext/capi/CExtNodes.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3655,7 +3655,7 @@ static Object doGeneric(CApiContext capiContext, ModuleSpec moduleSpec, PythonAb
36553655
}
36563656

36573657
if (mSize < 0) {
3658-
throw raiseNode.raise(PythonBuiltinClassType.SyntaxError, "module %s: m_size may not be negative for multi-phase initialization", mName);
3658+
throw raiseNode.raise(PythonBuiltinClassType.SystemError, "module %s: m_size may not be negative for multi-phase initialization", mName);
36593659
}
36603660

36613661
// parse slot definitions

0 commit comments

Comments
 (0)