From db3a01dad8101ca504593b07c87800c19c1f4250 Mon Sep 17 00:00:00 2001 From: "Jonathan M. Henson" Date: Tue, 10 Oct 2023 10:44:02 -0700 Subject: [PATCH] Update source/common.c PR trivial merge Co-authored-by: Michael Graeb --- source/common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/common.c b/source/common.c index 570009d86..c93e3e924 100644 --- a/source/common.c +++ b/source/common.c @@ -85,7 +85,7 @@ PyObject *aws_py_get_ec2_instance_type(PyObject *self, PyObject *args) { struct aws_system_environment *env = PyCapsule_GetPointer(env_capsule, s_capsule_name_sys_env); if (!env) { - return PyErr_AwsLastError(); + return NULL; } struct aws_allocator *allocator = aws_py_get_allocator();