Skip to content

Commit d77ad7d

Browse files
committed
Fix string formatting error.
the {reaction:s} was causing a TypeError: unsupported format string passed to TemplateReaction.__format__ but {reaction} should do the intended conversion. This line is seldom hit.
1 parent 4804643 commit d77ad7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rmgpy/rmg/model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,7 @@ def make_new_reaction(self, forward, check_existing=True, generate_thermo=True,
501501
reactants = [self.make_new_species(reactant, generate_thermo=generate_thermo)[0] for reactant in forward.reactants]
502502
products = [self.make_new_species(product, generate_thermo=generate_thermo)[0] for product in forward.products]
503503
except:
504-
logging.error(f"Error when making species in reaction {forward:s} from {forward.family:s}")
504+
logging.error(f"Error when making species in reaction {forward} from {forward.family}")
505505
raise
506506

507507
if forward.specific_collider is not None:

0 commit comments

Comments
 (0)