Skip to content

Commit bbf5699

Browse files
committed
Address Victor's review
1 parent 3c6388b commit bbf5699

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Modules/posixmodule.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12916,13 +12916,13 @@ _pystatvfs_fromstructstatfs(PyObject *module, struct statfs st) {
1291612916

1291712917
_Static_assert(sizeof(st.f_blocks) == sizeof(long long), "assuming large file");
1291812918

12919-
#define SET_ITEM(V, INDEX, EXPR) \
12920-
do { \
12921-
PyObject *obj = (EXPR); \
12922-
if (obj == NULL || PyErr_Occurred()) { \
12919+
#define SET_ITEM(V, INDEX, EXPR) \
12920+
do { \
12921+
PyObject *obj = (EXPR); \
12922+
if (obj == NULL) { \
1292312923
Py_DECREF((V)); \
12924-
return NULL; \
12925-
} \
12924+
return NULL; \
12925+
} \
1292612926
PyStructSequence_SET_ITEM((V), (INDEX), obj); \
1292712927
} while (0)
1292812928

0 commit comments

Comments
 (0)