diff options
author | Damien George <damien.p.george@gmail.com> | 2020-03-18 17:26:19 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2020-03-18 17:26:19 +1100 |
commit | ad9a0ec8abc9d04b93b949831b7152f55ca0d7ac (patch) | |
tree | f988445bbb8f1ef36b1ae69bfa6e60f4ed5d3d4e /extmod/vfs_posix_file.c | |
parent | 8f0778b2092a4af1b7109b997a3c9c14766e31e8 (diff) |
all: Convert exceptions to use mp_raise_XXX helpers in remaining places.
Diffstat (limited to 'extmod/vfs_posix_file.c')
-rw-r--r-- | extmod/vfs_posix_file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/extmod/vfs_posix_file.c b/extmod/vfs_posix_file.c index 1a5c0eb0a..b49251f03 100644 --- a/extmod/vfs_posix_file.c +++ b/extmod/vfs_posix_file.c @@ -45,7 +45,7 @@ typedef struct _mp_obj_vfs_posix_file_t { #ifdef MICROPY_CPYTHON_COMPAT STATIC void check_fd_is_open(const mp_obj_vfs_posix_file_t *o) { if (o->fd < 0) { - mp_raise_msg(&mp_type_ValueError, "I/O operation on closed file"); + mp_raise_ValueError("I/O operation on closed file"); } } #else |