Commit b14c93d6 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

handle situation where there is problem with dapi properly

parent fc0cc75a
minerva (15.0.1) stable; urgency=medium
* Bug fix: when there was problem with DAPI minerva threw unexpected error
(#1316)
-- Piotr Gawron <piotr.gawron@uni.lu> Fri, 26 Jun 2020 11:00:00 +0200
minerva (15.0.0) stable; urgency=medium
* Backward incompatible: old connection to CTD is removed and replaced with
new Data-API interface that closely check license compliance
......
......@@ -220,6 +220,7 @@ public class DapiConnectorImpl extends CachableInterface implements DapiConnecto
List<String> result = new ArrayList<>();
String url = DAPI_BASE_URL + "database/";
String content = getWebPageDownloader().getFromNetwork(url);
logger.debug(content);
JsonArray array = new JsonParser()
.parse(content)
.getAsJsonObject()
......@@ -230,7 +231,7 @@ public class DapiConnectorImpl extends CachableInterface implements DapiConnecto
result.add(array.get(i).getAsJsonObject().get("name").getAsString());
}
return result;
} catch (IOException e) {
} catch (Exception e) {
throw new DapiConnectionException("Problem with accessing dapi", e);
}
}
......
Supports Markdown
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