Skip to content
Snippets Groups Projects
Commit f19e4617 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

strange error handling when saving data to db

parent 8637c0a8
No related branches found
No related tags found
1 merge request!70Resolve "Get drugs by target"
......@@ -523,7 +523,11 @@ public class DrugbankHTMLParser extends DrugAnnotation implements IExternalServi
drug = findMoreInformation(drugName);
setCacheValue(query, getDrugSerializer().objectToString(drug));
try {
setCacheValue(query, getDrugSerializer().objectToString(drug));
} catch (SerializationException e) {
logger.error("Problem with serializing element ");
}
return drug;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment