From: Jim Procter Date: Fri, 3 Sep 2021 14:36:05 +0000 (+0100) Subject: JAL-3855 don’t need to query Alphafold2 repository directly from PDBe FTS client... X-Git-Tag: Release_2_11_2_0~39^2~28 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=939d888886c67ec73b4d6bb719ae3283c1ccccd1;p=jalview.git JAL-3855 don’t need to query Alphafold2 repository directly from PDBe FTS client since 3db client will do that --- diff --git a/src/jalview/fts/service/pdb/PDBFTSRestClient.java b/src/jalview/fts/service/pdb/PDBFTSRestClient.java index 04fb17c..a315300 100644 --- a/src/jalview/fts/service/pdb/PDBFTSRestClient.java +++ b/src/jalview/fts/service/pdb/PDBFTSRestClient.java @@ -207,6 +207,10 @@ public class PDBFTSRestClient extends FTSRestClient implements StructureFTSRestC return parsePDBJsonResponse(responseString, jsonObj, pdbRestRequest); } catch (Exception e) { + if (e.getMessage()==null) + { + throw(e); + } String exceptionMsg = e.getMessage(); if (exceptionMsg.contains("SocketException")) { @@ -323,8 +327,8 @@ public static String parseJsonExceptionString(String jsonErrorResponse) int numFound = Integer .valueOf(pdbResponse.get("numFound").toString()); List docs = (List) pdbResponse.get("docs"); - // add in any alphafold bits at the top - result = AlphafoldRestClient.getFTSData(pdbRestRequest); + + result = new ArrayList(); if (numFound > 0) {