Skip to content

Commit 2359836

Browse files
committed
throw an exception if os.getenv is used on a board without settings.toml support
1 parent 6b5cf55 commit 2359836

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shared-bindings/os/__init__.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ STATIC mp_obj_t os_getenv(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_
103103

104104
return common_hal_os_getenv(mp_obj_str_get_str(args[ARG_key].u_obj), args[ARG_default].u_obj);
105105
#else
106-
return mp_const_none;
106+
mp_raise_NotImplementedError(NULL);
107107
#endif
108108
}
109109
STATIC MP_DEFINE_CONST_FUN_OBJ_KW(os_getenv_obj, 1, os_getenv);

0 commit comments

Comments
 (0)