Skip to content

Commit 0992a97

Browse files
committed
missing raise error
1 parent f08cace commit 0992a97

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

source/module.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,6 @@ static int s_init_datetime_cache(void) {
6565
return AWS_OP_SUCCESS;
6666
}
6767

68-
// static void s_cleanup_datetime_cache(void) {
69-
// Py_XDECREF(s_datetime_class);
70-
// s_datetime_class = NULL;
71-
// }
72-
7368
int aws_py_is_datetime_instance(PyObject *obj, bool *out_is_datetime) {
7469
AWS_ASSERT(out_is_datetime);
7570

@@ -79,7 +74,7 @@ int aws_py_is_datetime_instance(PyObject *obj, bool *out_is_datetime) {
7974

8075
int result = PyObject_IsInstance(obj, s_datetime_class);
8176
if (result < 0) {
82-
return AWS_OP_ERR; /* PyObject_IsInstance failed */
77+
return aws_py_raise_error(); /* PyObject_IsInstance failed */
8378
}
8479

8580
*out_is_datetime = (result != 0);

0 commit comments

Comments
 (0)