Skip to content

Commit

Permalink
Special case the LINE event since there are also other events with 2 …
Browse files Browse the repository at this point in the history
…arguments.
  • Loading branch information
scoder committed May 21, 2024
1 parent 608992d commit 41f7bc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Python/instrumentation.c
Original file line number Diff line number Diff line change
Expand Up @@ -2439,7 +2439,7 @@ capi_call_instrumentation(PyMonitoringState *state, PyObject *codelike, int32_t
PyErr_SetString(PyExc_ValueError, "offset must be non-negative");
return -1;
}
if (nargs > 2) {
if (event != PY_MONITORING_EVENT_LINE) {
PyObject *offset_obj = PyLong_FromLong(offset);
if (offset_obj == NULL) {
return -1;
Expand Down

0 comments on commit 41f7bc9

Please sign in to comment.