Catch Value_Error exceptions too when parsing module data.

This commit is contained in:
Ramon Novoa 2015-08-14 12:09:02 +02:00
parent 6105ed453e
commit 8acb459029
1 changed files with 4 additions and 4 deletions

View File

@ -526,7 +526,7 @@ Pandora_Module::getXml () {
try { try {
data_clean = strreplace (this->getDataOutput (data), data_clean = strreplace (this->getDataOutput (data),
"%", "%%" ); "%", "%%" );
} catch (Output_Error e) { } catch (Module_Exception e) {
continue; continue;
} }
@ -538,7 +538,7 @@ Pandora_Module::getXml () {
data_clean = strreplace (this->getDataOutput (data), "%", "%%" ); data_clean = strreplace (this->getDataOutput (data), "%", "%%" );
module_xml += data_clean; module_xml += data_clean;
} catch (Output_Error e) { } catch (Module_Exception e) {
} }
} }
module_xml += "]]></data></log_module>"; module_xml += "]]></data></log_module>";
@ -741,7 +741,7 @@ Pandora_Module::getXml () {
try { try {
data_clean = strreplace (this->getDataOutput (data), data_clean = strreplace (this->getDataOutput (data),
"%", "%%" ); "%", "%%" );
} catch (Output_Error e) { } catch (Module_Exception e) {
continue; continue;
} }
@ -760,7 +760,7 @@ Pandora_Module::getXml () {
module_xml += "\t<data><![CDATA["; module_xml += "\t<data><![CDATA[";
module_xml += data_clean; module_xml += data_clean;
module_xml += "]]></data>\n"; module_xml += "]]></data>\n";
} catch (Output_Error e) { } catch (Module_Exception e) {
} }
} }