diff options
author | Olivier Tilloy <olivier@tilloy.net> | 2007-01-20 20:22:27 +0100 |
---|---|---|
committer | Olivier Tilloy <olivier@tilloy.net> | 2007-01-20 20:22:27 +0100 |
commit | 93d41b24803dfeb838ba21adc40937358be651df (patch) | |
tree | 46d4aaee282894f307e16dd5fa736c30359db513 /src/libpyexiv2_wrapper.cpp | |
parent | f036a7eafc6ae33f2983af58da0af88fb755f727 (diff) | |
download | pyexiv2-93d41b24803dfeb838ba21adc40937358be651df.tar.gz |
Basic handling of Exiv2 exceptions which are now converted to corresponding Python exceptions.
Diffstat (limited to 'src/libpyexiv2_wrapper.cpp')
-rw-r--r-- | src/libpyexiv2_wrapper.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libpyexiv2_wrapper.cpp b/src/libpyexiv2_wrapper.cpp index aa474b9..aac281b 100644 --- a/src/libpyexiv2_wrapper.cpp +++ b/src/libpyexiv2_wrapper.cpp @@ -34,6 +34,8 @@ using namespace LibPyExiv2; BOOST_PYTHON_MODULE(libpyexiv2) { + register_exception_translator<Exiv2::Error>(&translateExiv2Error); + class_<Image>("Image", init<std::string>()) .def("readMetadata", &Image::readMetadata) .def("writeMetadata", &Image::writeMetadata) |