summaryrefslogtreecommitdiff
path: root/python.h
diff options
context:
space:
mode:
Diffstat (limited to 'python.h')
-rw-r--r--python.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/python.h b/python.h
index 7faefa0d..c560170b 100644
--- a/python.h
+++ b/python.h
@@ -1,6 +1,8 @@
#ifndef _PYTHON_H
#define _PYTHON_H
+#include "error.h"
+
#include <boost/python.hpp>
using namespace boost::python;
@@ -47,6 +49,7 @@ inline void python_eval(std::istream& in)
}
catch(const boost::python::error_already_set&) {
PyErr_Print();
+ throw error("Evaluating Python code");
}
}