Skip to content

Commit

Permalink
More debug error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
rwest committed May 3, 2024
1 parent 8cd7528 commit 004eebb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion rmgpy/rmg/model.py
Expand Up @@ -810,7 +810,11 @@ def process_new_reactions(self, new_reactions, new_species, pdep_network=None, g
Makes a reaction and decides where to put it: core, edge, or PDepNetwork.
"""
for rxn in new_reactions:
rxn, is_new = self.make_new_reaction(rxn, generate_thermo=generate_thermo, generate_kinetics=generate_kinetics)
try:
rxn, is_new = self.make_new_reaction(rxn, generate_thermo=generate_thermo, generate_kinetics=generate_kinetics)
except Exception as e:
logging.error(f"Error when making reaction {rxn} from {rxn.family}")
raise
if rxn is None:
# Skip this reaction because there was something wrong with it
continue
Expand Down

0 comments on commit 004eebb

Please sign in to comment.