Skip to content

Commit 85e7e81

Browse files
committed
(Minor) Change an error message formatting to f-string.
1 parent ce7c5f5 commit 85e7e81

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

rmgpy/data/kinetics/rules.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -449,8 +449,8 @@ def estimate_kinetics(self, template, degeneracy=1):
449449
kinetics_list = remove_identical_kinetics(saved_kinetics)
450450

451451
if len(kinetics_list) == 0:
452-
raise KineticsError('Unable to determine kinetics for reaction with template {0} in family '
453-
'{1}.'.format(template, self.label))
452+
raise KineticsError("Unable to determine kinetics for reaction "
453+
f"with template {template!r} in family {self.label!s}.")
454454

455455
elif len(kinetics_list) == 1:
456456
kinetics, t = kinetics_list[0]

0 commit comments

Comments
 (0)