summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/pyinterp.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/pyinterp.cc b/src/pyinterp.cc
index f4d664cf..2c549890 100644
--- a/src/pyinterp.cc
+++ b/src/pyinterp.cc
@@ -376,8 +376,9 @@ value_t python_interpreter_t::python_command(call_scope_t& args)
delete[] argv[i];
delete[] argv;
- if (status != 0)
- throw status;
+ if (status != 0) {
+ throw_(std::runtime_error, _("Failed to execute Python module"));
+ }
return NULL_VALUE;
}