We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f08cace commit 0992a97Copy full SHA for 0992a97
source/module.c
@@ -65,11 +65,6 @@ static int s_init_datetime_cache(void) {
65
return AWS_OP_SUCCESS;
66
}
67
68
-// static void s_cleanup_datetime_cache(void) {
69
-// Py_XDECREF(s_datetime_class);
70
-// s_datetime_class = NULL;
71
-// }
72
-
73
int aws_py_is_datetime_instance(PyObject *obj, bool *out_is_datetime) {
74
AWS_ASSERT(out_is_datetime);
75
@@ -79,7 +74,7 @@ int aws_py_is_datetime_instance(PyObject *obj, bool *out_is_datetime) {
79
80
int result = PyObject_IsInstance(obj, s_datetime_class);
81
76
if (result < 0) {
82
- return AWS_OP_ERR; /* PyObject_IsInstance failed */
77
+ return aws_py_raise_error(); /* PyObject_IsInstance failed */
83
78
84
85
*out_is_datetime = (result != 0);
0 commit comments