Skip to content

Commit 41262fc

Browse files
committed
Add error message to pymain_set_inspect()
1 parent 7aa818e commit 41262fc

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Modules/main.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -531,6 +531,7 @@ pymain_set_inspect(PyConfig *config, int inspect)
531531
{
532532
PyObject *value = PyLong_FromLong(inspect);
533533
if (value == NULL || PyConfig_Set("inspect", value) < 0) {
534+
fprintf(stderr, "Could not set the inspect flag\n");
534535
PyErr_Print();
535536
}
536537
else {

0 commit comments

Comments
 (0)