Skip to content

Commit

Permalink
added explanatory comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ChemMitch committed Aug 29, 2024
1 parent e86c615 commit f879b8c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/gov/nih/ncats/molwitch/cdk/CdkChemicalImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,8 @@ public static void setMaxUndefinedStereoCenters(int maxUndefinedStereoCenters) {
} else {
Logger.getLogger(this.getClass().getName()).fine("This molecule is considered NOT complex");
try {
//The call to label generates an Exception down in the bowels of CDK.
// trapping it in a try/catch allows the process to continue
CIPToolMod.label(cimp.getContainer());
} catch (NoSuchAtomException ex) {
Logger.getLogger(this.getClass().getName()).warning("Error in call to CIPToolMod.label. Processing will continue");
Expand Down

0 comments on commit f879b8c

Please sign in to comment.