From 02ea1404877d44434b6796931a047dbc110baca1 Mon Sep 17 00:00:00 2001 From: Ramon Novoa Date: Fri, 14 Aug 2015 12:09:02 +0200 Subject: [PATCH] Catch Value_Error exceptions too when parsing module data. (cherry picked from commit 8acb459029945306b9aa2aafc8d46a24829e462f) --- pandora_agents/win32/modules/pandora_module.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pandora_agents/win32/modules/pandora_module.cc b/pandora_agents/win32/modules/pandora_module.cc index 67f6c48533..807d28ba7f 100644 --- a/pandora_agents/win32/modules/pandora_module.cc +++ b/pandora_agents/win32/modules/pandora_module.cc @@ -526,7 +526,7 @@ Pandora_Module::getXml () { try { data_clean = strreplace (this->getDataOutput (data), "%", "%%" ); - } catch (Output_Error e) { + } catch (Module_Exception e) { continue; } @@ -538,7 +538,7 @@ Pandora_Module::getXml () { data_clean = strreplace (this->getDataOutput (data), "%", "%%" ); module_xml += data_clean; - } catch (Output_Error e) { + } catch (Module_Exception e) { } } module_xml += "]]>"; @@ -741,7 +741,7 @@ Pandora_Module::getXml () { try { data_clean = strreplace (this->getDataOutput (data), "%", "%%" ); - } catch (Output_Error e) { + } catch (Module_Exception e) { continue; } @@ -760,7 +760,7 @@ Pandora_Module::getXml () { module_xml += "\t\n"; - } catch (Output_Error e) { + } catch (Module_Exception e) { } }