From 1fd15705e1a4146956a156d168080cd486d39bc8 Mon Sep 17 00:00:00 2001
From: florent <florent@laas.fr>
Date: Wed, 15 Dec 2010 16:18:00 +0100
Subject: [PATCH] Catch std::exception when executing command

      * src/entity-py.cc : for some reason, catching ExceptionAbstract is not
        sufficient.
---
 src/entity-py.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/entity-py.cc b/src/entity-py.cc
index 6abfdc5..58ba371 100644
--- a/src/entity-py.cc
+++ b/src/entity-py.cc
@@ -422,7 +422,7 @@ namespace dynamicgraph {
 	try {
 	  Value result = command->execute();
 	  return valueToPython(result);
-	} catch (const ExceptionAbstract& exc) {
+	} catch (const std::exception& exc) {
 	  PyErr_SetString(error, exc.what()) ;
 	  return NULL;
 	}
-- 
GitLab