remove uneeded exception translator for mapnik::config_error - works around #1847
This commit is contained in:
parent
879225abfb
commit
c127757cd6
1 changed files with 0 additions and 7 deletions
|
@ -84,7 +84,6 @@ void export_logger();
|
||||||
#include <mapnik/rule.hpp>
|
#include <mapnik/rule.hpp>
|
||||||
#include <mapnik/image_util.hpp>
|
#include <mapnik/image_util.hpp>
|
||||||
#include <mapnik/load_map.hpp>
|
#include <mapnik/load_map.hpp>
|
||||||
#include <mapnik/config_error.hpp>
|
|
||||||
#include <mapnik/scale_denominator.hpp>
|
#include <mapnik/scale_denominator.hpp>
|
||||||
#include <mapnik/value_error.hpp>
|
#include <mapnik/value_error.hpp>
|
||||||
#include <mapnik/save_map.hpp>
|
#include <mapnik/save_map.hpp>
|
||||||
|
@ -333,11 +332,6 @@ double scale_denominator(mapnik::Map const &map, bool geographic)
|
||||||
}
|
}
|
||||||
|
|
||||||
// http://docs.python.org/c-api/exceptions.html#standard-exceptions
|
// http://docs.python.org/c-api/exceptions.html#standard-exceptions
|
||||||
void config_error_translator(mapnik::config_error const & ex)
|
|
||||||
{
|
|
||||||
PyErr_SetString(PyExc_RuntimeError, ex.what());
|
|
||||||
}
|
|
||||||
|
|
||||||
void value_error_translator(mapnik::value_error const & ex)
|
void value_error_translator(mapnik::value_error const & ex)
|
||||||
{
|
{
|
||||||
PyErr_SetString(PyExc_ValueError, ex.what());
|
PyErr_SetString(PyExc_ValueError, ex.what());
|
||||||
|
@ -433,7 +427,6 @@ BOOST_PYTHON_MODULE(_mapnik)
|
||||||
|
|
||||||
register_exception_translator<std::exception>(&standard_error_translator);
|
register_exception_translator<std::exception>(&standard_error_translator);
|
||||||
register_exception_translator<std::out_of_range>(&out_of_range_error_translator);
|
register_exception_translator<std::out_of_range>(&out_of_range_error_translator);
|
||||||
register_exception_translator<mapnik::config_error>(&config_error_translator);
|
|
||||||
register_exception_translator<mapnik::value_error>(&value_error_translator);
|
register_exception_translator<mapnik::value_error>(&value_error_translator);
|
||||||
register_exception_translator<std::runtime_error>(&runtime_error_translator);
|
register_exception_translator<std::runtime_error>(&runtime_error_translator);
|
||||||
register_cairo();
|
register_cairo();
|
||||||
|
|
Loading…
Reference in a new issue