import jalview.ws.ServiceChangeListener;
import jalview.ws.WSDiscovererI;
import jalview.ws.api.ServiceWithParameters;
+import javajs.http.HttpClientFactory;
+
import java.io.IOException;
import java.net.MalformedURLException;
import java.net.URL;
{
List<?> services = new SlivkaClient(url).getServices();
return services.isEmpty() ? STATUS_NO_SERVICES : STATUS_OK;
- } catch (IOException e)
+ } catch (IOException | org.json.JSONException e)
{
Cache.log.error("Slivka could not retrieve services list", e);
return STATUS_INVALID;