]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Use existing unbound_local_error label in DELETE_FAST opcode (GH-30882)
authorKumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Wed, 26 Jan 2022 13:58:28 +0000 (19:28 +0530)
committerGitHub <noreply@github.com>
Wed, 26 Jan 2022 13:58:28 +0000 (13:58 +0000)
Python/ceval.c

index 0a6fc4a20660b527f50600dbd319854458c22fb3..29ca5e3750cc0208abf0a24b71c42bd17e8f4219 100644 (file)
@@ -3107,12 +3107,7 @@ handle_eval_breaker:
                 SETLOCAL(oparg, NULL);
                 DISPATCH();
             }
-            format_exc_check_arg(
-                tstate, PyExc_UnboundLocalError,
-                UNBOUNDLOCAL_ERROR_MSG,
-                PyTuple_GetItem(frame->f_code->co_localsplusnames, oparg)
-                );
-            goto error;
+            goto unbound_local_error;
         }
 
         TARGET(MAKE_CELL) {