Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 67072cc

Browse files
Fix PyErr_Format call
1 parent 5e15349 commit 67072cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/_testexternalinspection.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ find_map_start_address(pid_t pid, char* result_filename, const char* map)
315315

316316
if (!match_found) {
317317
map_filename[0] = '\0';
318-
PyErr_SetString(PyExc_RuntimeError, "Cannot find map start address for map: %s", map);
318+
PyErr_Format(PyExc_RuntimeError, "Cannot find map start address for map: %s", map);
319319
}
320320

321321
return result_address;

0 commit comments

Comments
 (0)