Commit d6afecda authored by Matija Obreza's avatar Matija Obreza

Ignore invalid country code

parent dcf2eb92
......@@ -676,7 +676,10 @@ public class BatchRESTServiceImpl implements BatchRESTService {
if (orgCty != null) {
country = geoService.getCountry(orgCty);
if (country == null) {
throw new RESTApiValueException("No country with ISO3 code: " + orgCty);
// TODO this should become a warning
// throw new
// RESTApiValueException("No country with ISO3 code: " +
// orgCty);
}
}
accession.setCountryOfOrigin(country);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment