Skip to content

Commit

Permalink
log failed parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
sbittrich committed Jun 8, 2023
1 parent 6227db0 commit ceccc50
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/org/rcsb/stats/Helpers.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}
}

Expand Down

0 comments on commit ceccc50

Please sign in to comment.