Skip to content

Commit

Permalink
Update Objects/frameobject.c
Browse files Browse the repository at this point in the history
Co-authored-by: Radislav Chugunov <[email protected]>
  • Loading branch information
carljm and chgnrdv authored Sep 6, 2023
1 parent 991c73c commit 12ea2ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Objects/frameobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ frame_getlocals(PyFrameObject *f, void *closure)
{
if (f == NULL) {
PyErr_BadInternalCall();
return -1;
return NULL;
}
assert(!_PyFrame_IsIncomplete(f->f_frame));
PyObject *locals = _PyFrame_GetLocals(f->f_frame, 1);
Expand Down

0 comments on commit 12ea2ef

Please sign in to comment.