Merge pull request #8206 from dhalbert/8.2.x-backport-8169-getenv-notimplemented

8.2.x backport: throw an exception if os.getenv is used on a board without settings.t…
This commit is contained in:
Scott Shawcroft 2023-07-24 10:08:34 -07:00 committed by GitHub
commit 44c6563028
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -122,7 +122,7 @@ STATIC mp_obj_t os_getenv(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_
return common_hal_os_getenv(mp_obj_str_get_str(args[ARG_key].u_obj), args[ARG_default].u_obj);
#else
return mp_const_none;
mp_raise_NotImplementedError(NULL);
#endif
}
STATIC MP_DEFINE_CONST_FUN_OBJ_KW(os_getenv_obj, 1, os_getenv);