diff --git a/src/main/java/org/rcsb/stats/Helpers.java b/src/main/java/org/rcsb/stats/Helpers.java index ea2c84f..8a64448 100644 --- a/src/main/java/org/rcsb/stats/Helpers.java +++ b/src/main/java/org/rcsb/stats/Helpers.java @@ -4,6 +4,7 @@ import com.google.gson.JsonElement; import com.google.gson.JsonObject; import org.rcsb.cif.CifIO; +import org.rcsb.cif.ParsingException; import org.rcsb.cif.schema.StandardSchemata; import org.rcsb.cif.schema.mm.MmCifFile; import org.slf4j.Logger; @@ -47,6 +48,9 @@ private static MmCifFile fetchStructureData(String identifier) { } catch (IOException e) { logger.warn("Failed to pull structure data for {}", identifier); throw new UncheckedIOException(e); + } catch (ParsingException e) { + logger.warn("Failed to parse structure data for {}", identifier); + throw e; } }