Catch Value_Error exceptions too when parsing module data.

(cherry picked from commit 8acb459029)
This commit is contained in:
Ramon Novoa 2015-08-14 12:09:02 +02:00
parent 3b3039ea31
commit 02ea140487
1 changed files with 4 additions and 4 deletions

View File

@ -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 += "]]></data></log_module>";
@ -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<data><![CDATA[";
module_xml += data_clean;
module_xml += "]]></data>\n";
} catch (Output_Error e) {
} catch (Module_Exception e) {
}
}