Skip to content

Commit 68e1c4f

Browse files
committed
pic16bit/main: Make mp_lexer_new_from_file raise an exception.
1 parent 41b1df6 commit 68e1c4f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

pic16bit/main.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
#include "py/runtime.h"
3434
#include "py/gc.h"
3535
#include "py/mphal.h"
36+
#include "py/mperrno.h"
3637
#include "lib/utils/pyexec.h"
3738
#include "readline.h"
3839
#include "board.h"
@@ -98,7 +99,7 @@ void gc_collect(void) {
9899
}
99100

100101
mp_lexer_t *mp_lexer_new_from_file(const char *filename) {
101-
return NULL;
102+
mp_raise_OSError(MP_ENOENT);
102103
}
103104

104105
mp_import_stat_t mp_import_stat(const char *path) {

0 commit comments

Comments
 (0)