diff --git a/src/runtime/builtin_modules/builtins.cpp b/src/runtime/builtin_modules/builtins.cpp index 4fd8f8aa9c36b0a5b770dbf9f12a83660a409eae..e3e55dea9fa196e553a6d7eeb76a02ca16b5afde 100644 --- a/src/runtime/builtin_modules/builtins.cpp +++ b/src/runtime/builtin_modules/builtins.cpp @@ -946,7 +946,7 @@ Box* rawInput(Box* prompt) { Box* input(Box* prompt) { fatalOrError(PyExc_NotImplementedError, "unimplemented"); - return nullptr; + throwCAPIException(); } Box* builtinRound(Box* _number, Box* _ndigits) { @@ -963,12 +963,12 @@ Box* builtinRound(Box* _number, Box* _ndigits) { } fatalOrError(PyExc_NotImplementedError, "unimplemented"); - return nullptr; + throwCAPIException(); } Box* builtinCmp(Box* lhs, Box* rhs) { fatalOrError(PyExc_NotImplementedError, "unimplemented"); - return nullptr; + throwCAPIException(); } void setupBuiltins() {