mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 03:20:18 +00:00
switched to using vm->AttributeError for missing global
This commit is contained in:
parent
f4d2c401f7
commit
dd2212fbad
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user