Skip to content

Commit 6c47bdd

Browse files
committed
[GR-53372][GR-54599] Fix sktime, reacquire GIL after async handler exception
PullRequest: graalpython/3365
2 parents 1fc772e + 75581bf commit 6c47bdd

File tree

12 files changed

+2780
-83
lines changed

12 files changed

+2780
-83
lines changed

graalpython/com.oracle.graal.python.cext/src/codecs.c

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2018, 2021, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2018, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* The Universal Permissive License (UPL), Version 1.0
@@ -42,3 +42,13 @@
4242

4343

4444
const char *Py_hexdigits = "0123456789abcdef";
45+
46+
47+
PyObject *PyCodec_StrictErrors(PyObject *exc)
48+
{
49+
if (PyExceptionInstance_Check(exc))
50+
PyErr_SetObject(PyExceptionInstance_Class(exc), exc);
51+
else
52+
PyErr_SetString(PyExc_TypeError, "codec must pass exception instance");
53+
return NULL;
54+
}

0 commit comments

Comments
 (0)