From dd2212fbadab9977d06cc026a35efd9a69fd1be9 Mon Sep 17 00:00:00 2001 From: Kolten Pearson Date: Sat, 6 May 2023 19:23:41 -0600 Subject: [PATCH] switched to using vm->AttributeError for missing global --- c_bindings/pocketpy_c.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/c_bindings/pocketpy_c.cpp b/c_bindings/pocketpy_c.cpp index 1c249633..e906c9f5 100644 --- a/c_bindings/pocketpy_c.cpp +++ b/c_bindings/pocketpy_c.cpp @@ -302,7 +302,7 @@ bool pkpy_get_global(pkpy_vm* vm_handle, const char* name) { if (o == nullptr) { o = vm->builtins->attr().try_get(name); if (o == nullptr) - throw Exception("AttributeError", "could not find requested global"); + vm->AttributeError("could not find requested global"); } vm->c_data->push(o);