diff options
author | Daniel M. Pelt <D.M.Pelt@cwi.nl> | 2015-07-21 11:44:29 +0200 |
---|---|---|
committer | Willem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl> | 2015-07-23 11:57:18 +0200 |
commit | dc3bed557603d4735ddc20961c28e5e868fc315c (patch) | |
tree | fa32c22d40af80ae29e8f8e5d9b81eb710f41984 /src | |
parent | 3808967cfaa6beb9d93d2035ebc72fa010fdab11 (diff) | |
download | astra-dc3bed557603d4735ddc20961c28e5e868fc315c.tar.gz astra-dc3bed557603d4735ddc20961c28e5e868fc315c.tar.bz2 astra-dc3bed557603d4735ddc20961c28e5e868fc315c.tar.xz astra-dc3bed557603d4735ddc20961c28e5e868fc315c.zip |
Clear Python error when plugin is not find in getHelp
Diffstat (limited to 'src')
-rw-r--r-- | src/PluginAlgorithm.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/PluginAlgorithm.cpp b/src/PluginAlgorithm.cpp index 56c4e4d..5c779fd 100644 --- a/src/PluginAlgorithm.cpp +++ b/src/PluginAlgorithm.cpp @@ -262,6 +262,7 @@ std::string CPluginAlgorithmFactory::getHelp(std::string name){ PyObject *className = PyDict_GetItemString(pluginDict, name.c_str()); if(className==NULL){ ASTRA_ERROR("Plugin %s not found!",name.c_str()); + PyErr_Clear(); return ""; } std::string ret = ""; |