2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-24 06:02:14 +00:00

Bug fix with construction of std::exception

[SVN r16625]
This commit is contained in:
Dave Abrahams
2002-12-16 21:14:30 +00:00
parent 0d2cdbbdfe
commit 0e36ac6b72

View File

@@ -8,6 +8,7 @@
// Dirk Gerrits
#include <iostream>
#include <stdexcept>
#include <boost/python.hpp>
#include <boost/scoped_ptr.hpp>
@@ -60,8 +61,8 @@ void test()
// Register the module with the interpreter
if (PyImport_AppendInittab("embedded_hello", initembedded_hello) == -1)
throw std::exception("Failed to add embedded_hello to the interpreters "
"builtin modules");
throw std::runtime_error("Failed to add embedded_hello to the interpreter's "
"builtin modules");
// Initialize the interpreter
Py_Initialize();