diff options
| author | Scott Shawcroft <scott.shawcroft@gmail.com> | 2017-02-24 15:13:07 +0100 |
|---|---|---|
| committer | Scott Shawcroft <scott.shawcroft@gmail.com> | 2017-02-24 15:13:07 +0100 |
| commit | 12fa5b3a66d6f0034113a56c7d647c7bac5be74c (patch) | |
| tree | cc4d5103421f930b7ebaa20eb7d6c8d59c6b6f0d /cc3200 | |
| parent | efd429464ed82c78fd2e11244a803c7ec2cb2211 (diff) | |
Switch exception throwing to mp_raise helpers. It saves a little code space each time to share the call.
Diffstat (limited to 'cc3200')
| -rw-r--r-- | cc3200/mods/moduos.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cc3200/mods/moduos.c b/cc3200/mods/moduos.c index d5b29336a..ffe2b551a 100644 --- a/cc3200/mods/moduos.c +++ b/cc3200/mods/moduos.c @@ -498,7 +498,7 @@ STATIC mp_obj_t os_unmount(mp_obj_t path_o) { if ((mount_obj = osmount_find_by_path(path))) { unmount (mount_obj); } else { - mp_raise_msg(&mp_type_ValueError, mpexception_value_invalid_arguments); + mp_raise_ValueError(mpexception_value_invalid_arguments); } return mp_const_none; |
