Skip to content

Commit c4a5245

Browse files
committed
Use xeus::create_successful_reply routine in debugger modules request
1 parent 94b5e48 commit c4a5245

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/xdebugger.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -404,11 +404,11 @@ namespace xpyt
404404
}
405405
}
406406

407-
return {
408-
{"body", {
409-
{"modules", mods},
410-
{"totalModules", py::len(modules)}
411-
}}
407+
nl::json body = {
408+
{"modules", mods},
409+
{"totalModules", py::len(modules)}
412410
};
411+
412+
return xeus::create_successful_reply(nl::json::array(), body);
413413
}
414414
}

0 commit comments

Comments
 (0)