From 939d888886c67ec73b4d6bb719ae3283c1ccccd1 Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Fri, 3 Sep 2021 15:36:05 +0100 Subject: [PATCH] =?utf8?q?JAL-3855=20don=E2=80=99t=20need=20to=20query=20Alp?= =?utf8?q?hafold2=20repository=20directly=20from=20PDBe=20FTS=20client=20sin?= =?utf8?q?ce=203db=20client=20will=20do=20that?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/jalview/fts/service/pdb/PDBFTSRestClient.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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) { -- 1.7.10.2