Skip to content

Commit fc3649c

Browse files
committed
gh-137293 print exception instead of clearing
1 parent 18786cf commit fc3649c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Python/remote_debug.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -732,8 +732,8 @@ search_linux_map_for_section(proc_handle_t *handle, const char* secname, const c
732732
if (retval) {
733733
break;
734734
}
735-
if (PyErr_Occured()){
736-
PyErr_Clear();
735+
if (PyErr_Occurred()){
736+
PyErr_Print();
737737
}
738738
}
739739
}

0 commit comments

Comments
 (0)