Skip to content
Snippets Groups Projects
Commit 20a99bc8 authored by Justin Carpentier's avatar Justin Carpentier
Browse files

[wip/py-eigen] Correct exception catch

parent 00a64add
No related branches found
No related tags found
No related merge requests found
......@@ -5,7 +5,7 @@
VERSION= 1.4.0
DISTNAME= eigenpy-${VERSION}
DISTFILES= eigenpy-${VERSION}b.tar.gz
PKGREVISION= 1
PKGREVISION= 2
MASTER_SITES= ${MASTER_SITE_OPENROBOTS:=${PKGBASE}/}
MASTER_REPOSITORY= ${MASTER_REPOSITORY_GITHUB}/stack-of-tasks/eigenpy
......
......@@ -2,3 +2,4 @@ SHA1 (eigenpy-1.4.0b.tar.gz) = dd633c63cae2a7998d9aa0aaac899eda7eea183c
RMD160 (eigenpy-1.4.0b.tar.gz) = 7db21dd7b7983cab33fedbde20c45fab9e77eed2
Size (eigenpy-1.4.0b.tar.gz) = 857715 bytes
SHA1 (patch-aa) = 5d54a0d1ae21e859933d573fdee85cfe083a0431
SHA1 (patch-ab) = e8f2d3c53d032e7b27100257ed285ecb2eb9a009
diff --git src/exception.cpp src/exception.cpp
index e67b298..6a7e6ed 100644
--- src/exception.cpp
+++ src/exception.cpp
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2015-2016 LAAS-CNRS
+ * Copyright (c) 2015-2018 LAAS-CNRS
*
* This file is part of eigenpy.
* eigenpy is free software: you can redistribute it and/or
@@ -17,6 +17,8 @@
#include "eigenpy/exception.hpp"
#include "eigenpy/registration.hpp"
+#include <boost/python/exception_translator.hpp>
+
namespace eigenpy
{
@@ -26,7 +28,7 @@ namespace eigenpy
{
assert(NULL!=pyType);
// Return an exception object of type pyType and value object(e).
- PyErr_SetObject(Exception::pyType,boost::python::object(e).ptr());
+ PyErr_SetString(PyExc_RuntimeError, e.what());
}
void Exception::registerException()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment